Reputation: 7920
If I have a function defined in an admin class that I want to display as HTML, I give the function a property function_name.allow_tags=True
. How can I do the same for a read-only field?
I can't do
property_name.allow_tags=True
in the admin, and in the model it doesn't do anything.
Upvotes: 2
Views: 624
Reputation: 7920
Make a function that returns the read-only field, hide the read-only field, and display tags on the function.
Upvotes: 1