Sort games alphabetically on edition form
This commit is contained in:
parent
2640a49734
commit
468d05a9e2
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue