Commit 7342784b authored by vagrant's avatar vagrant Committed by Baptiste Mispelon
Browse files

[1.5.x] Fixed #22842

Backport of 7a1f8414 from master.
parent d57cf88c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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::