Rename get_query_set to get_queryset

This commit is contained in:
Patrick Altman 2014-12-18 08:15:07 -06:00
parent b7d1d1a968
commit a33e1cfb1f

View file

@ -5,6 +5,6 @@ from django.db import models
class PublishedPageManager(models.Manager): class PublishedPageManager(models.Manager):
def get_query_set(self):
qs = super(PublishedPageManager, self).get_query_set()
return qs.filter(publish_date__lte=datetime.now()) return qs.filter(publish_date__lte=datetime.now())
def get_queryset(self):
qs = super(PublishedPageManager, self).get_queryset()