Skip to content

Commit

Permalink
Fixed #6324 -- Fixed get() call in UserFlagManager.flag().
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
gdub committed Jan 28, 2008
1 parent 332e68d commit 2e43934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/comments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2e43934

Please sign in to comment.