From cdb3b89b08bfbef602d95dc85b075dd8013581e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sat, 16 Sep 2023 18:18:03 +0200 Subject: [PATCH] do not filter out refunded games when adding session --- games/forms.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/games/forms.py b/games/forms.py index d7ca8b2..9a01bd1 100644 --- a/games/forms.py +++ b/games/forms.py @@ -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: