I\'m trying to display a bit of html in a message that\'s being displayed via the new Django messages framework. Specifically, I\'m doing this via the ModelAdmin.message_use
Another option is to use extra_tags keyword arg to indicate that a message is safe. Eg
messages.error(request, 'Here is a link', extra_tags='safe')
then use template logic to use the safe filter
{% for message in messages %} {% if 'safe' in message.tags %}{{ message|safe }}{% else %}{{ message }}{% endif %} {% endfor %}