X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f59de09387c7ceb7d6ab2ccf6ea25cb4be8dacb5..f1d541634355755e03c883feda7f6e72782542e9:/src/club/forms.py diff --git a/src/club/forms.py b/src/club/forms.py index ceda8d5b1..0ee00dc7f 100644 --- a/src/club/forms.py +++ b/src/club/forms.py @@ -90,7 +90,7 @@ class DonationStep2Form(forms.ModelForm, NewsletterForm): consents = [] for consent, key, consent_field in self.consent: - if self.cleaned_data[key]: + if consent.required or self.cleaned_data[key]: instance.consent.add(consent) return instance