mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
parent
d57cf88c1e
commit
7342784b99
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,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…
Add table
Add a link
Reference in a new issue