personnes: order access list by username.

This commit is contained in:
Mikaël Ates 2014-10-07 16:52:20 +02:00
parent 5a8330bb34
commit 0c97658eab
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ class AccessView(cbv.ListView):
q = Q(**{criteria+'__contains': part})
filters.append(q)
qs = qs.filter(reduce(Q.__or__, filters))
qs = qs.order_by('username')
qs = qs.prefetch_related('userworker__worker')
return qs