Ticket #1772: models.py.patch

File models.py.patch, 446 bytes (added by gandalf@…, 18 years ago)

fixed function call

  • models.py

     
    5656    def user_is_moderator(self, user):
    5757        if user.is_superuser:
    5858            return True
    59         for g in user.group_set.all():
     59        for g in user.groups.all():
    6060            if g.id == settings.COMMENTS_MODERATORS_GROUP:
    6161                return True
    6262        return False
Back to Top