diff options
| author | Gary Wilson Jr <gary.wilson@gmail.com> | 2008-01-28 05:29:09 +0000 |
|---|---|---|
| committer | Gary Wilson Jr <gary.wilson@gmail.com> | 2008-01-28 05:29:09 +0000 |
| commit | 2e43934aedab56ae5885ba11a37248921e5a51f7 (patch) | |
| tree | 4d09179a3449cfe31b3f854df44ba057b44dfdf7 | |
| parent | 332e68d550e152ba762da7da09e6717e1c20a31a (diff) | |
Fixed #6324 -- Fixed `get()` call in `UserFlagManager.flag()`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/comments/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/comments/models.py b/django/contrib/comments/models.py index bedf07aced..d0c54b85cb 100644 --- a/django/contrib/comments/models.py +++ b/django/contrib/comments/models.py @@ -270,7 +270,7 @@ class UserFlagManager(models.Manager): 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) |
