symposion_app/symposion/cms/managers.py
2014-12-18 08:19:01 -06:00

10 lines
260 B
Python

from django.utils import timezone
from django.db import models
class PublishedPageManager(models.Manager):
def get_queryset(self):
qs = super(PublishedPageManager, self).get_queryset()
return qs.filter(publish_date__lte=timezone.now())