diff --git a/users/forms.py b/users/forms.py index 747b4aff..33100c9d 100644 --- a/users/forms.py +++ b/users/forms.py @@ -409,10 +409,11 @@ class AdherentCreationForm(AdherentForm): def __init__(self, *args, **kwargs): super(AdherentCreationForm, self).__init__(*args, **kwargs) + gtu_file = GeneralOption.get_cached_value('GTU') self.fields['gtu_check'].label = mark_safe( "%s %s." % ( _("I commit to accept the"), - GeneralOption.get_cached_value('GTU').url, + gtu_file.url if gtu_file else "#", _("General Terms of Use") ) )