Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3473 -- Corrected access to get in manager (probably introduce…

…d as part of magic-removal conversion).

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4873 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7be1f44053e3b099637cee625852f273bf8cad21 1 parent df119b7
Russell Keith-Magee authored March 31, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/comments/models.py
2  django/contrib/comments/models.py
@@ -209,7 +209,7 @@ def get_content_object(self):
209 209
 class KarmaScoreManager(models.Manager):
210 210
     def vote(self, user_id, comment_id, score):
211 211
         try:
212  
-            karma = self.objects.get(comment__pk=comment_id, user__pk=user_id)
  212
+            karma = self.get(comment__pk=comment_id, user__pk=user_id)
213 213
         except self.model.DoesNotExist:
214 214
             karma = self.model(None, user_id=user_id, comment_id=comment_id, score=score, scored_date=datetime.datetime.now())
215 215
             karma.save()

0 notes on commit 7be1f44

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