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,7 +40,7 @@ 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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue