In Django (we are currently using 1.9), when we add an UrlField
to a model, the Admin site correctly renders the UrlField value as a clickable link on edit views.
If we were to mark this UrlField
as readonly (through the ModelAdmin
readonly_fields
attribute), the value is then displayed as non-clickable plain text.
- What is a rationale for this behaviour ?
- Is there a way to work around it without changing the widget for the associated form field ?