Skip to content

Commit 2204fb0

Browse files
authored
Merge pull request #757 from liangliangyy/dev
fix bug
2 parents 2ba7daf + 2bdb4cb commit 2204fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comments/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def link_to_userinfo(self, obj):
3838
(link, obj.author.nickname if obj.author.nickname else obj.author.email))
3939

4040
def link_to_article(self, obj):
41-
info = (obj.author._meta.app_label, obj.author._meta.model_name)
41+
info = (obj.article._meta.app_label, obj.article._meta.model_name)
4242
link = reverse('admin:%s_%s_change' % info, args=(obj.article.id,))
4343
return format_html(
4444
u'<a href="%s">%s</a>' % (link, obj.article.title))

0 commit comments

Comments
 (0)