parent
380cafe5be
commit
44a50603d4
|
@ -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::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue