Exclude refunded purchases from start session form
This commit is contained in:
parent
fd9d531baf
commit
11b19cbace
|
@ -10,7 +10,7 @@ custom_datetime_widget = forms.DateTimeInput(
|
||||||
|
|
||||||
class SessionForm(forms.ModelForm):
|
class SessionForm(forms.ModelForm):
|
||||||
purchase = forms.ModelChoiceField(
|
purchase = forms.ModelChoiceField(
|
||||||
queryset=Purchase.objects.order_by("edition__name")
|
queryset=Purchase.objects.filter(date_refunded=None).order_by("edition__name")
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in New Issue