affiche tous les statuts, pas seulement ceux présents dans une demande

This commit is contained in:
Benjamin Dauvergne 2012-07-17 20:22:15 +02:00
parent 9426fff93a
commit 2e75f96a85
1 changed files with 1 additions and 1 deletions

View File

@ -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