Commit 76bd6b4a authored by Daniel Klaffenbach's avatar Daniel Klaffenbach 🐍

models: Fix get_display_full()

parent be553e0e
......@@ -175,8 +175,9 @@ class JournalEntry(models.Model):
label = ugettext('%s was changed:' %verbose_name)
li = ''
for i in diff:
li += format_html('<li><strong>{}:</strong> "{}" &rarr; "{}"</li>', i, diff[i][0], diff[i][1])
label += li
li += format_html('<li><strong>{}:</strong> "{}" &rarr; "{}"</li>', i, diff[i][0], diff[i][1])
if li:
label += '<ul>%s</ul>' %li
return mark_safe(label)
else:
return ugettext('%s was deleted.' %verbose_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment