Compare commits

..

2 Commits

Author SHA1 Message Date
Lukáš Kucharczyk cdb3b89b08 do not filter out refunded games when adding session
continuous-integration/drone/push Build is passing Details
2023-09-16 18:18:03 +02:00
Lukáš Kucharczyk ffa8198540 allow django admit 2023-09-16 18:17:36 +02:00
2 changed files with 7 additions and 4 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:

View File

@ -40,9 +40,9 @@ INSTALLED_APPS = [
"django.contrib.staticfiles",
]
if DEBUG:
INSTALLED_APPS.append("django_extensions")
INSTALLED_APPS.append("django.contrib.admin")
# if DEBUG:
INSTALLED_APPS.append("django_extensions")
INSTALLED_APPS.append("django.contrib.admin")
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",