From a93d20266c49f50170ad6cd5e42b414beb8d208c Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Mon, 1 Aug 2022 22:27:44 +0200 Subject: [PATCH] Show newest cards at the top of the cards table --- aleksis/apps/kort/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aleksis/apps/kort/views.py b/aleksis/apps/kort/views.py index e6bf277..26d7a86 100644 --- a/aleksis/apps/kort/views.py +++ b/aleksis/apps/kort/views.py @@ -56,6 +56,9 @@ class CardListView(PermissionRequiredMixin, RevisionMixin, PrinterSelectMixin, S model = Card table_class = CardTable + def get_queryset(self): + return Card.objects.order_by("-pk") + class CardCreateView(PermissionRequiredMixin, RevisionMixin, AdvancedCreateView): """View used to create a card.""" -- GitLab