Commit a68e6794 authored by Élie Bouttier's avatar Élie Bouttier

correction trie des allocations

parent b28e5713
......@@ -191,6 +191,7 @@ class AllocationInline(admin.TabularInline):
formset = AllocationInlineFormSet
extra = 0
show_change_link = True
ordering = ('-start',)
def get_queryset(self, request):
qs = super().get_queryset(request)
......@@ -225,7 +226,6 @@ 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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment