symposion_app/symposion/cms/managers.py
2012-07-10 18:18:48 -04:00

9 lines
261 B
Python

from datetime import datetime
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())