|
@@ -85,7 +85,7 @@ class ActiveServiceFilter(admin.SimpleListFilter):
|
|
|
|
|
|
def queryset(self, request, queryset):
|
|
|
if self.value() == '0': # inactif
|
|
|
- return queryset.filter(has_active_allocations=False)
|
|
|
+ return queryset.exclude(get_active_filter('allocation')) # has_active_allocations=False ne fonctionne pas
|
|
|
if self.value() == '1': # actif
|
|
|
return queryset.filter(has_active_allocations=True)
|
|
|
|