summaryrefslogtreecommitdiff
path: root/app/lib/django_comments/managers.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/django_comments/managers.py')
-rw-r--r--app/lib/django_comments/managers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/lib/django_comments/managers.py b/app/lib/django_comments/managers.py
index bc0fc5f..9e1fc77 100644
--- a/app/lib/django_comments/managers.py
+++ b/app/lib/django_comments/managers.py
@@ -2,13 +2,13 @@ from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.utils.encoding import force_text
-class CommentManager(models.Manager):
+class CommentManager(models.Manager):
def in_moderation(self):
"""
QuerySet for all comments currently in the moderation queue.
"""
- return self.get_query_set().filter(is_public=False, is_removed=False)
+ return self.get_queryset().filter(is_public=False, is_removed=False)
def for_model(self, model):
"""
@@ -16,7 +16,7 @@ class CommentManager(models.Manager):
a class).
"""
ct = ContentType.objects.get_for_model(model)
- qs = self.get_query_set().filter(content_type=ct)
+ qs = self.get_queryset().filter(content_type=ct)
if isinstance(model, models.Model):
qs = qs.filter(object_pk=force_text(model._get_pk_val()))
return qs