I need to generate external links in admin interface grid column, but they shows as html code:
<a href="http://www.site.com/">site</a>
Admin interface translates my links as html-entities and they doesn't shows as right links. Is it possible to show external links there, not html code?
I think list_display_links doesn't work for this purpose.
Thank you!
Just go further in http://docs.djangoproject.com/en/dev/ref/contrib/admin/#list-display
def colored_name(self):
return '<span style="color: #%s;">%s %s</span>' % (self.color_code, self.first_name, self.last_name)
colored_name.allow_tags = True
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With