Compare commits

..

No commits in common. "cdb3b89b08bfbef602d95dc85b075dd8013581e5" and "0b7da3550c47e8c7231fbc2475d4a2393107cbce" have entirely different histories.

2 changed files with 4 additions and 7 deletions

View File

@ -9,11 +9,8 @@ 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.order_by("edition__name")
queryset=Purchase.objects.filter(date_refunded=None).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",