Disallow choosing non-game purchase as related purchase
This commit is contained in:
parent
f31280c682
commit
62cd17f702
|
@ -1,3 +1,8 @@
|
||||||
|
## 1.5.1 / 2023-11-14 19:55+01:00
|
||||||
|
|
||||||
|
## Improved
|
||||||
|
* Disallow choosing non-game purchase as related purchase
|
||||||
|
|
||||||
## 1.5.0 / 2023-11-14 19:27+01:00
|
## 1.5.0 / 2023-11-14 19:27+01:00
|
||||||
|
|
||||||
## New
|
## New
|
||||||
|
|
|
@ -56,7 +56,9 @@ class PurchaseForm(forms.ModelForm):
|
||||||
)
|
)
|
||||||
platform = forms.ModelChoiceField(queryset=Platform.objects.order_by("name"))
|
platform = forms.ModelChoiceField(queryset=Platform.objects.order_by("name"))
|
||||||
related_purchase = forms.ModelChoiceField(
|
related_purchase = forms.ModelChoiceField(
|
||||||
queryset=Purchase.objects.order_by("edition__sort_name")
|
queryset=Purchase.objects.filter(type=Purchase.GAME).order_by(
|
||||||
|
"edition__sort_name"
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in New Issue