mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Fixed #22842
This commit is contained in:
@@ -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::
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user