Disallow choosing non-game purchase as related purchase
This commit is contained in:
parent
29d6cb8a4a
commit
d280fa3798
|
@ -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
|
||||
|
||||
## New
|
||||
|
|
|
@ -56,7 +56,9 @@ class PurchaseForm(forms.ModelForm):
|
|||
)
|
||||
platform = forms.ModelChoiceField(queryset=Platform.objects.order_by("name"))
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue