Private
Public Access
1
0

adding trailing slashes to post forms

This commit is contained in:
Sander Roosendaal
2019-01-05 13:29:39 +01:00
parent aa1b233798
commit e2cdb0af8e
25 changed files with 59 additions and 47 deletions

View File

@@ -746,7 +746,8 @@ class PlanSelectForm(forms.Form):
self.fields['plan'].empty_label = None
if paymentprocessor:
self.fields['plan'].queryset = PaidPlan.objects.filter(
paymentprocessor=paymentprocessor
paymentprocessor=paymentprocessor,
active=True
).exclude(
shortname="basic"
).order_by(
@@ -758,7 +759,8 @@ class PlanSelectForm(forms.Form):
except AttributeError:
amount = 0
self.fields['plan'].queryset = PaidPlan.objects.filter(
paymentprocessor=rower.paymentprocessor
paymentprocessor=rower.paymentprocessor,
active=True
).exclude(
price__lte=amount
).order_by(