Kaydet (Commit) c755c8da authored tarafından Daniele Procida's avatar Daniele Procida

Merge pull request #2810 from magrinidiego/ticket_22842_tutorial_test

Fixed #22842
...@@ -246,7 +246,7 @@ past: ...@@ -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::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment