Skip to content
Snippets Groups Projects
Verified Commit a93d2026 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Show newest cards at the top of the cards table

parent b12e2c6c
No related branches found
No related tags found
No related merge requests found
Pipeline #82010 failed
......@@ -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."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment