Ticket #1772: models.py.patch
File models.py.patch, 446 bytes (added by , 19 years ago) |
---|
-
models.py
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