Browse Source

afficher les allocations les plus récente en premier

Élie Bouttier 6 years ago
parent
commit
b28e571375
1 changed files with 1 additions and 0 deletions
  1. 1 0
      services/admin.py

+ 1 - 0
services/admin.py

@@ -225,6 +225,7 @@ class ActiveAllocationMixin:
 class InactiveAllocationMixin:
     verbose_name_plural = 'Anciennes allocations'
     max_num = 0
+    ordering = ('-start',)
 
     def get_queryset(self, request):
         return super().get_queryset(request).exclude(get_active_filter())