[1.6.x] Fixed #22842
Backport of 7a1f8414c3b71b6af03e5be9f5f8db115551c410 from master.
This commit is contained in:
parent
26983c4c64
commit
b0e5a527db
@ -239,7 +239,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::
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user