from .payu.forms import CardTokenForm
-class ScheduleForm(NewsletterForm, forms.ModelForm):
+class ScheduleForm(forms.ModelForm, NewsletterForm):
class Meta:
model = models.Schedule
fields = ['monthly', 'amount', 'email']
raise forms.ValidationError('Minimalna kwota to %d zł.' % club.min_amount)
return value
+ def save(self, *args, **kwargs):
+ NewsletterForm.save(self, *args, **kwargs)
+ return super().save(*args, **kwargs)
+
class PayUCardTokenForm(CardTokenForm):
def get_queryset(self, view):