From a29086e87333c125cfa7ff534947cd98b0fab80c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org>
Date: Thu, 13 Apr 2023 17:36:38 +0200
Subject: [PATCH] inverse ordering

---
 contracts/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contracts/views.py b/contracts/views.py
index 27e352a..8f04ca1 100644
--- a/contracts/views.py
+++ b/contracts/views.py
@@ -64,7 +64,7 @@ def get_paginated_contracts(request, filter=None) -> tuple:
     contracts = (
         get_objects_for_user(request.user, "contracts.view_contract")
         .filter(filter)
-        .order_by("valid_start_date")
+        .order_by("-valid_start_date")
         .all()
     )
 
-- 
GitLab