diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index c5b0ab52..51e7014d 100644 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1805,8 +1805,8 @@ class Adherent(BaseProprietaire): l, new = preattr(new) new = new.capitalize() - for c in new[:]: - if c not in (string.letters + '- ' + preattr(accents)[1] ): + for c in strip_accents(new[:]): + if c not in (string.letters + '- '): raise ValueError(u"Seuls les caractères alphabétiques, l'espace et le - sont permis dans %s." % champ) if l<2: raise ValueError(u"%s trop court." % champ)