Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 2e43934aedab56ae5885ba11a37248921e5a51f7 1 parent 332e68d
Gary Wilson Jr. gdub authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/comments/models.py
2  django/contrib/comments/models.py
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.