diff --git a/fet2020/posts/managers.py b/fet2020/posts/managers.py index 2df2bd97..5c649ae1 100644 --- a/fet2020/posts/managers.py +++ b/fet2020/posts/managers.py @@ -87,7 +87,7 @@ class ArticleManager(PublishedManager, models.Manager): __month = post_date.month __year = post_date.year - if __month != 0: + if __month != 1: __month -= 1 else: # If the current month is January, you get the date from December of previous year.