affiche tous les statuts, pas seulement ceux présents dans une demande
This commit is contained in:
parent
9426fff93a
commit
2e75f96a85
|
@ -390,7 +390,7 @@ class ListRequest(ListView):
|
|||
if current:
|
||||
display = Status.objects.get(id=current).name
|
||||
self.filters.append(('status', current, [(display, self.qs(**{'status': None}))]))
|
||||
choices = set(self.get_queryset(without_filter=['status']).exclude(status=current).values_list('status', 'status__name').distinct())
|
||||
choices = Status.objects.values_list('id', 'name')
|
||||
choices = [
|
||||
(self.qs(**{'status': status}), display)
|
||||
for status, display in choices
|
||||
|
|
Reference in New Issue