Exclude refunded purchases from start session form
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lukáš Kucharczyk 2023-03-01 22:07:49 +01:00
parent d21b461726
commit 29c41865d0
1 changed files with 1 additions and 1 deletions

View File

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