sort by name is assign form
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 18 Apr 2012 10:42:16 +0000 (12:42 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 18 Apr 2012 10:42:16 +0000 (12:42 +0200)
apps/catalogue/forms.py

index 4e5b2cb..f70dc47 100644 (file)
@@ -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: