I'm only guessing, but I think the escaping is being done at rendering time by the template itself. Take a look at the default admin templates and check the docs for an explanation on how to override them with your own.
Protip: do not edit the original files! Cheers, AT -- Sent from my phone, please excuse any typos. -- On Apr 13, 2012 6:16 AM, "FraMazz" <fram...@gmail.com> wrote: > Is it possible to avoid HTML escaping in admin? > I have defined a model with verbose_name for several fields. > In verbose_name I need HTML code to highlight part of the string e.g. > d1 = models.CharField(max_length=1, blank=False, default='0', > verbose_name="Hi <b>all</b>!''). > In admin the text gets escaped resulting in the whole string being shown > (Hi <b>all</b>!) instead of Hi *all*! > I also tried verbose_name=mark_safe("Hi <b>all</b>!'') to no avail > > Suggestions? > Thanks > Francesca > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/LYnO1AIlc_EJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.