diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-05-05 12:52:15 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-05-05 12:52:15 +0000 |
| commit | a0872543a7d1cbcb4576ef3d41ef413edf89e3c1 (patch) | |
| tree | d47f513255ef092fee94bff0536425c1def83a11 | |
| parent | 4f15f10048ab40f939d8229967820f321c082d28 (diff) | |
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
| -rw-r--r-- | django/contrib/comments/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
