Files @ 8857e7b7608c
Branch filter:

Location: symposion_app/symposion/cms/managers.py

Rebecca Lovewell
Use {% load url from future %} in cms templates

Using https://github.com/django-future-url
1
2
3
4
5
6
7
8
9
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())