summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial05.txt
diff options
context:
space:
mode:
authorvagrant <vagrant@precise32.(none)>2014-06-15 10:44:33 +0000
committerBaptiste Mispelon <bmispelon@gmail.com>2014-06-15 21:13:05 +0200
commit7342784b99a45cf661fd23f3ffd52eb02ce5cf3a (patch)
tree056ece07fbaf787b5f4d2cd319c0670eefbe9f10 /docs/intro/tutorial05.txt
parentd57cf88c1e14bad8fb4611725245c381241dd748 (diff)
[1.5.x] Fixed #22842
Backport of 7a1f8414c3b71b6af03e5be9f5f8db115551c410 from master.
Diffstat (limited to 'docs/intro/tutorial05.txt')
-rw-r--r--docs/intro/tutorial05.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt
index 23c9856bed..9c72056488 100644
--- a/docs/intro/tutorial05.txt
+++ b/docs/intro/tutorial05.txt
@@ -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::