admin: fixed typo

This commit is contained in:
Benjamin Dauvergne 2012-12-11 17:02:56 +01:00
parent f1a2d54f1a
commit b33e7bc73c
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class JournalAdmin(admin.ModelAdmin):
key = obj_data.tag.name;
ctx[key] = '<a href="?objectdata__content_type={0}&objectdata__object_id={1}">{2}{3}</a>'.format(
content_type_id, object_id, ctx[key], self.object_link(obj_data))
template = _(entry.template_content) # localize the template
template = _(entry.template.content) # localize the template
return '<span>{}</span>'.format(template.format(**ctx))
html_message.allow_tags = True
html_message.short_description = _('Message')