do not filter out refunded games when adding session

This commit is contained in:
Lukáš Kucharczyk 2023-09-16 18:18:03 +02:00
parent 1610b7d8a4
commit 4355953e42
1 changed files with 4 additions and 1 deletions

View File

@ -9,8 +9,11 @@ custom_datetime_widget = forms.DateTimeInput(
class SessionForm(forms.ModelForm):
# purchase = forms.ModelChoiceField(
# queryset=Purchase.objects.filter(date_refunded=None).order_by("edition__name")
# )
purchase = forms.ModelChoiceField(
queryset=Purchase.objects.filter(date_refunded=None).order_by("edition__name")
queryset=Purchase.objects.order_by("edition__name")
)
class Meta: