From a0872543a7d1cbcb4576ef3d41ef413edf89e3c1 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 5 May 2006 12:52:15 +0000 Subject: [PATCH] Fixed #1722 -- Fixed bug in CommentManager.user_is_moderator(). Thanks, Jure Cuhalev git-svn-id: http://code.djangoproject.com/svn/django/trunk@2848 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/comments/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/comments/models.py b/django/contrib/comments/models.py index 95aa3ae28a..23b0dfbde6 100644 --- a/django/contrib/comments/models.py +++ b/django/contrib/comments/models.py @@ -56,7 +56,7 @@ class CommentManager(models.Manager): def user_is_moderator(self, user): if user.is_superuser: return True - for g in user.group_set.all(): + for g in user.groups.all(): if g.id == settings.COMMENTS_MODERATORS_GROUP: return True return False