From 4e4277b12a41673d67f608609776f34adc9171e2 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 18 Apr 2012 12:42:16 +0200 Subject: [PATCH] sort by name is assign form --- apps/catalogue/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/catalogue/forms.py b/apps/catalogue/forms.py index 4e5b2cb4..f70dc472 100644 --- a/apps/catalogue/forms.py +++ b/apps/catalogue/forms.py @@ -72,7 +72,7 @@ class ChunkForm(forms.ModelForm): """ user = forms.ModelChoiceField(queryset= User.objects.annotate(count=Count('chunk')). - order_by('-count', 'last_name', 'first_name'), required=False, + order_by('last_name', 'first_name'), required=False, label=_('Assigned to')) class Meta: -- 2.20.1