Skip to content

Commit b016364

Browse files
committed
agree_contact shouldn't be mandatory
1 parent b2035ea commit b016364

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/donations/forms/redirection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class DonationForm(forms.Form):
2727

2828
two_years = forms.BooleanField(label=_("Two years"), required=False)
2929
anaf_gdpr = forms.BooleanField(label=_("ANAF GDPR"), required=False)
30-
agree_contact = forms.BooleanField(label=_("Agree contact"), required=True)
30+
agree_contact = forms.BooleanField(label=_("Agree contact"), required=False)
3131
agree_terms = forms.BooleanField(label=_("Agree terms"), required=True)
3232

3333
signature = forms.CharField(label=_("Signature"), max_length=1_000_000, required=False)

backend/templates/v2/form/redirection-open.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ <h2 class="mb-5 text-2xl font-bold tracking-tight text-gray-900">
158158

159159
{% trans "I agree that this NGO may contact me in the future with details about the projects implemented" as input_title %}
160160
<div class="flex gap-3 mt-4">
161-
{% include "components/input/checkbox.html" with input_id="agree_contact" input_name="agree_contact" is_required=True field=redirection_form.agree_contact %}
161+
{% include "components/input/checkbox.html" with input_id="agree_contact" input_name="agree_contact" is_required=False field=redirection_form.agree_contact %}
162162
</div>
163163

164164
{% url 'terms' as terms_url %}

0 commit comments

Comments
 (0)