From 352f6133d8dace73b51807f59d9322bfb66ac8bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Mon, 20 Feb 2023 17:37:14 +0100 Subject: [PATCH] Sort games alphabetically on edition form --- games/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/games/forms.py b/games/forms.py index 6e1a380..42ebf8b 100644 --- a/games/forms.py +++ b/games/forms.py @@ -43,6 +43,7 @@ class PurchaseForm(forms.ModelForm): class EditionForm(forms.ModelForm): + game = forms.ModelChoiceField(queryset=Game.objects.order_by("name")) platform = forms.ModelChoiceField(queryset=Platform.objects.order_by("name")) class Meta: