'monthly'
]
-
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ club = models.Club.objects.first()
+ self.fields['custom_amount'].widget.attrs['min'] = club.min_amount
+
def clean(self):
state = {}
state['monthly'] = self.cleaned_data['switch'] == 'monthly'