Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1722 -- Fixed bug in CommentManager.user_is_moderator(). Thank…

…s, Jure Cuhalev

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a0872543a7d1cbcb4576ef3d41ef413edf89e3c1 1 parent 4f15f10
Adrian Holovaty authored May 05, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/comments/models.py
2  django/contrib/comments/models.py
@@ -56,7 +56,7 @@ def get_list_with_karma(self, **kwargs):
56 56
     def user_is_moderator(self, user):
57 57
         if user.is_superuser:
58 58
             return True
59  
-        for g in user.group_set.all():
  59
+        for g in user.groups.all():
60 60
             if g.id == settings.COMMENTS_MODERATORS_GROUP:
61 61
                 return True
62 62
         return False

0 notes on commit a087254

Please sign in to comment.
Something went wrong with that request. Please try again.