Sort games alphabetically on edition form

This commit is contained in:
Lukáš Kucharczyk 2023-02-20 17:37:14 +01:00
parent 8f1bbab895
commit 352f6133d8
1 changed files with 1 additions and 0 deletions

View File

@ -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: