Compare commits
2 Commits
0b7da3550c
...
cdb3b89b08
Author | SHA1 | Date |
---|---|---|
Lukáš Kucharczyk | cdb3b89b08 | |
Lukáš Kucharczyk | ffa8198540 |
|
@ -9,8 +9,11 @@ custom_datetime_widget = forms.DateTimeInput(
|
||||||
|
|
||||||
|
|
||||||
class SessionForm(forms.ModelForm):
|
class SessionForm(forms.ModelForm):
|
||||||
|
# purchase = forms.ModelChoiceField(
|
||||||
|
# queryset=Purchase.objects.filter(date_refunded=None).order_by("edition__name")
|
||||||
|
# )
|
||||||
purchase = forms.ModelChoiceField(
|
purchase = forms.ModelChoiceField(
|
||||||
queryset=Purchase.objects.filter(date_refunded=None).order_by("edition__name")
|
queryset=Purchase.objects.order_by("edition__name")
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
|
@ -40,9 +40,9 @@ INSTALLED_APPS = [
|
||||||
"django.contrib.staticfiles",
|
"django.contrib.staticfiles",
|
||||||
]
|
]
|
||||||
|
|
||||||
if DEBUG:
|
# if DEBUG:
|
||||||
INSTALLED_APPS.append("django_extensions")
|
INSTALLED_APPS.append("django_extensions")
|
||||||
INSTALLED_APPS.append("django.contrib.admin")
|
INSTALLED_APPS.append("django.contrib.admin")
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
"django.middleware.security.SecurityMiddleware",
|
"django.middleware.security.SecurityMiddleware",
|
||||||
|
|
Loading…
Reference in New Issue