# HG changeset patch # User Brian Neal # Date 1388346349 21600 # Node ID 66d46d31d543d75aa8bacfca574b2df3451db361 # Parent b77acb1b6a8ab1c85bf0f4a190814b94ba8bde94 Django 1.6: get_query_set -> get_queryset. diff -r b77acb1b6a8a -r 66d46d31d543 comments/models.py --- a/comments/models.py Sun Dec 29 13:38:50 2013 -0600 +++ b/comments/models.py Sun Dec 29 13:45:49 2013 -0600 @@ -21,7 +21,7 @@ def for_object(self, obj, filter_public=True): """QuerySet for all comments for a particular model instance.""" ct = ContentType.objects.get_for_model(obj) - qs = self.get_query_set().filter(content_type__pk=ct.id, + qs = self.get_queryset().filter(content_type__pk=ct.id, object_id=obj.id) if filter_public: qs = qs.filter(is_public=True)