Loading services/admin.py +1 −1 Original line number Diff line number Diff line Loading @@ -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) Loading Loading @@ -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()) Loading Loading
services/admin.py +1 −1 Original line number Diff line number Diff line Loading @@ -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) Loading Loading @@ -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()) Loading