Ticket #6324: django_comments_patch.diff

File django_comments_patch.diff, 653 bytes (added by Sam Bull <sbull@…>, 7 years ago)

the patch to comments.models

  • contrib/comments/models.py

     
    257257        if int(comment.user_id) == int(user.id):
    258258            return # A user can't flag his own comment. Fail silently.
    259259        try:
    260             f = self.objects.get(user__pk=user.id, comment__pk=comment.id)
     260            f = self.get(user__pk=user.id, comment__pk=comment.id)
    261261        except self.model.DoesNotExist:
    262262            from django.core.mail import mail_managers
    263263            f = self.model(None, user.id, comment.id, None)
Back to Top