Compare commits
No commits in common. "cdb3b89b08bfbef602d95dc85b075dd8013581e5" and "0b7da3550c47e8c7231fbc2475d4a2393107cbce" have entirely different histories.
cdb3b89b08
...
0b7da3550c
|
@ -9,11 +9,8 @@ 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.order_by("edition__name")
|
queryset=Purchase.objects.filter(date_refunded=None).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