From d488c1e021c3ce4335223a407cbd82182fd83708 Mon Sep 17 00:00:00 2001 From: Patrick Altman Date: Thu, 18 Dec 2014 08:15:47 -0600 Subject: [PATCH] Use timezone.now instead of datetime.now --- symposion/cms/managers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/symposion/cms/managers.py b/symposion/cms/managers.py index a2e8f156..9ffb6592 100644 --- a/symposion/cms/managers.py +++ b/symposion/cms/managers.py @@ -1,10 +1,10 @@ -from datetime import datetime +from django.utils import timezone from django.db import models class PublishedPageManager(models.Manager): - return qs.filter(publish_date__lte=datetime.now()) def get_queryset(self): qs = super(PublishedPageManager, self).get_queryset() + return qs.filter(publish_date__lte=timezone.now())