Sort platforms alphabetically on edition form
This commit is contained in:
parent
c3d4697470
commit
5f845f866e
|
@ -38,6 +38,8 @@ class PurchaseForm(forms.ModelForm):
|
||||||
|
|
||||||
|
|
||||||
class EditionForm(forms.ModelForm):
|
class EditionForm(forms.ModelForm):
|
||||||
|
platform = forms.ModelChoiceField(queryset=Platform.objects.order_by("name"))
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Edition
|
model = Edition
|
||||||
fields = ["game", "name", "platform", "year_released", "wikidata"]
|
fields = ["game", "name", "platform", "year_released", "wikidata"]
|
||||||
|
|
Loading…
Reference in New Issue