8000 [1.5.x] Fixed #22842 · alex-python/django@7342784 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7342784

Browse files
vagrantbmispelon
authored andcommitted
[1.5.x] Fixed #22842
Backport of 7a1f841 from master.
1 parent d57cf88 commit 7342784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/intro/tutorial05.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ past::
239239

240240
def was_published_recently(self):
241241
now = timezone.now()
242-
return now - datetime.timedelta(days=1) <= self.pub_date < now
242+
return now - datetime.timedelta(days=1) <= self.pub_date <= now
243243

244244
and run the test again::
245245

0 commit comments

Comments
 (0)
0