Skip to content
Browse files

Fixed #6324 -- Fixed `get()` call in `UserFlagManager.flag()`.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 332e68d commit 2e43934aedab56ae5885ba11a37248921e5a51f7 @gdub gdub committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/comments/models.py
View
2 django/contrib/comments/models.py
@@ -270,7 +270,7 @@ def flag(self, comment, user):
if int(comment.user_id) == int(user.id):
return # A user can't flag his own comment. Fail silently.
try:
- f = self.objects.get(user__pk=user.id, comment__pk=comment.id)
+ f = self.get(user__pk=user.id, comment__pk=comment.id)
except self.model.DoesNotExist:
from django.core.mail import mail_managers
f = self.model(None, user.id, comment.id, None)

0 comments on commit 2e43934

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