Ticket #6324: django_comments_patch.diff
File django_comments_patch.diff, 653 bytes (added by , 17 years ago) |
---|
-
contrib/comments/models.py
257 257 if int(comment.user_id) == int(user.id): 258 258 return # A user can't flag his own comment. Fail silently. 259 259 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) 261 261 except self.model.DoesNotExist: 262 262 from django.core.mail import mail_managers 263 263 f = self.model(None, user.id, comment.id, None)