downgrade notifications
This commit is contained in:
@@ -721,6 +721,7 @@ class PlanSelectForm(forms.Form):
|
||||
def __init__(self, *args, **kwargs):
|
||||
paymentprocessor = kwargs.pop('paymentprocessor',None)
|
||||
rower = kwargs.pop('rower',None)
|
||||
includeall = kwargs.pop('includeall',False)
|
||||
super(PlanSelectForm, self).__init__(*args, **kwargs)
|
||||
self.fields['plan'].empty_label = None
|
||||
if paymentprocessor:
|
||||
@@ -731,7 +732,7 @@ class PlanSelectForm(forms.Form):
|
||||
).order_by(
|
||||
"price","clubsize","shortname"
|
||||
)
|
||||
if rower:
|
||||
if rower and not includeall:
|
||||
try:
|
||||
amount = rower.paidplan.price
|
||||
except AttributeError:
|
||||
@@ -743,6 +744,7 @@ class PlanSelectForm(forms.Form):
|
||||
).order_by(
|
||||
"price","clubsize","shortname"
|
||||
)
|
||||
|
||||
|
||||
class CourseSelectForm(forms.Form):
|
||||
course = forms.ModelChoiceField(queryset=GeoCourse.objects.all())
|
||||
|
||||
Reference in New Issue
Block a user