Exclude refunded purchases from start session form
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d21b461726
commit
29c41865d0
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue