do not filter out refunded games when adding session
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lukáš Kucharczyk 2023-09-16 18:18:03 +02:00
parent ffa8198540
commit cdb3b89b08
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: