Fixed #22842
This commit is contained in:
parent
dd57b89fcb
commit
7a1f8414c3
|
@ -246,7 +246,7 @@ past:
|
|||
|
||||
def was_published_recently(self):
|
||||
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::
|
||||
|
||||
|
|
Loading…
Reference in New Issue