X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9b3a6ae7c832a9db4e162bc47859b2347b16dac3..e9f489960eb8a1fc8c1fc39123589a9358c5d569:/apps/catalogue/forms.py diff --git a/apps/catalogue/forms.py b/apps/catalogue/forms.py index 33ccbe6f..6a56e764 100644 --- a/apps/catalogue/forms.py +++ b/apps/catalogue/forms.py @@ -65,7 +65,7 @@ class ChunkForm(forms.ModelForm): """ user = forms.ModelChoiceField(queryset= User.objects.annotate(count=Count('chunk')). - order_by('-count', 'last_name', 'first_name')) + order_by('-count', 'last_name', 'first_name'), required=False) class Meta: