__str__ must return str so can not return safe str

morever, format_html is recommanded by the doc for that usage.
This commit is contained in:
Élie Bouttier 2014-10-02 18:45:06 +02:00
parent 78b2967e19
commit 1e293bd727
2 changed files with 3 additions and 6 deletions

View file

@ -34,7 +34,7 @@
<div class="panel-heading">
<span class="badge"><span class="glyphicon glyphicon-{{ event.glyphicon }}"></span></span>
&#160;
<a href="{% same_author event.author %}"><b>{{ event.author}}</b></a> {{ event }} {{ event.date|naturaltime }}
<a href="{% same_author event.author %}"><b>{{ event.author}}</b></a> {{ event|safe }} {{ event.date|naturaltime }}
{% if event.code == event.DESCRIBE %}
<div class="pull-right">
{% if perm.delete_issue %}