From 66a5fd54ebdf43a032e7fcc442cdbf93c8cb5c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org> Date: Tue, 23 Jan 2024 11:11:01 +0100 Subject: [PATCH] fix date lookup in elections --- elections2021/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elections2021/models.py b/elections2021/models.py index e93efcf8..1bf82212 100644 --- a/elections2021/models.py +++ b/elections2021/models.py @@ -607,7 +607,7 @@ class Elections2021ArticlePage(ArticleMixin, SubpageMixin, MetadataPageMixin, Pa self.get_siblings(inclusive=False) .live() .specific() - .order_by("-elections2021articlepage__date")[:3] + .order_by("-elections2021articlepage__timestamp")[:3] ) return context @@ -664,7 +664,7 @@ class Elections2021ArticlesPage(SubpageMixin, MetadataPageMixin, Page): self.get_children() .live() .specific() - .order_by("-elections2021articlepage__date"), + .order_by("-elections2021articlepage__timestamp"), ARTICLES_PER_PAGE, ).get_page(request.GET.get("page")) return context -- GitLab