Sort games alphabetically on edition form
This commit is contained in:
parent
8f1bbab895
commit
352f6133d8
|
@ -43,6 +43,7 @@ class PurchaseForm(forms.ModelForm):
|
||||||
|
|
||||||
|
|
||||||
class EditionForm(forms.ModelForm):
|
class EditionForm(forms.ModelForm):
|
||||||
|
game = forms.ModelChoiceField(queryset=Game.objects.order_by("name"))
|
||||||
platform = forms.ModelChoiceField(queryset=Platform.objects.order_by("name"))
|
platform = forms.ModelChoiceField(queryset=Platform.objects.order_by("name"))
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in New Issue