From: Radek Czajka Date: Wed, 18 Apr 2012 10:42:16 +0000 (+0200) Subject: sort by name is assign form X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/4e4277b12a41673d67f608609776f34adc9171e2?hp=6d48dc65380f540f4471e5c890fcf27b2a240374 sort by name is assign form --- 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: