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

correction trie des allocations

parent b28e5713
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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())