summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorvagrant <vagrant@precise32.(none)>2014-06-15 10:44:33 +0000
committerBaptiste Mispelon <bmispelon@gmail.com>2014-06-16 08:45:58 +0200
commit44a50603d402a40158159e9cc05c776fe67973be (patch)
treeca07bd7c1da848e8efb0341be5a0181672ddce5f /docs
parent380cafe5bee50d4cc9d90ef6e33e47be9de25e0b (diff)
[1.7.x] Fixed #22842
Backport of 7a1f8414c3b71b6af03e5be9f5f8db115551c410 from master.
Diffstat (limited to 'docs')
-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 5f879c56a9..a2b1ba1f0f 100644
--- a/docs/intro/tutorial05.txt
+++ b/docs/intro/tutorial05.txt
@@ -246,7 +246,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::