We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ba7daf + 2bdb4cb commit 2204fb0Copy full SHA for 2204fb0
comments/admin.py
@@ -38,7 +38,7 @@ def link_to_userinfo(self, obj):
38
(link, obj.author.nickname if obj.author.nickname else obj.author.email))
39
40
def link_to_article(self, obj):
41
- info = (obj.author._meta.app_label, obj.author._meta.model_name)
+ info = (obj.article._meta.app_label, obj.article._meta.model_name)
42
link = reverse('admin:%s_%s_change' % info, args=(obj.article.id,))
43
return format_html(
44
u'<a href="%s">%s</a>' % (link, obj.article.title))
0 commit comments