Browse Source

Fix #216

fix-GTU-check-216
Hugo Levy-Falk 6 years ago
committed by klafyvel
parent
commit
d2d39f77de
  1. 9
      users/forms.py

9
users/forms.py

@ -390,8 +390,13 @@ class AdherentCreationForm(AdherentForm):
# Checkbox for GTU
gtu_check = forms.BooleanField(required=True)
#gtu_check.label = mark_safe("{} <a href='/media/{}' download='CGU'>{}</a>{}".format(
# _("I commit to accept the"), GeneralOption.get_cached_value('GTU'), _("General Terms of Use"), _(".")))
gtu_check.label = mark_safe(
"{} <a href='{}' download='CGU'>{}</a>{}".format(
_("I commit to accept the"),
GeneralOption.get_cached_value('GTU').url,
_("General Terms of Use"), _(".")
)
)
class Meta:
model = Adherent

Loading…
Cancel
Save