[1.7.x] Fixed #22842

Backport of 7a1f8414c3 from master.
This commit is contained in:
vagrant 2014-06-15 10:44:33 +00:00 committed by Baptiste Mispelon
parent 380cafe5be
commit 44a50603d4
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ past:
def was_published_recently(self): def was_published_recently(self):
now = timezone.now() now = timezone.now()
return now - datetime.timedelta(days=1) <= self.pub_date < now return now - datetime.timedelta(days=1) <= self.pub_date <= now
and run the test again:: and run the test again::