Rename get_query_set to get_queryset
This commit is contained in:
parent
b7d1d1a968
commit
a33e1cfb1f
1 changed files with 2 additions and 2 deletions
|
@ -5,6 +5,6 @@ from django.db import models
|
|||
|
||||
class PublishedPageManager(models.Manager):
|
||||
|
||||
def get_query_set(self):
|
||||
qs = super(PublishedPageManager, self).get_query_set()
|
||||
return qs.filter(publish_date__lte=datetime.now())
|
||||
def get_queryset(self):
|
||||
qs = super(PublishedPageManager, self).get_queryset()
|
||||
|
|
Loading…
Reference in a new issue