Skip to content

Commit

Permalink
Correction du formulaire
Browse files Browse the repository at this point in the history
  • Loading branch information
Eskimon committed Jul 27, 2014
1 parent 23f20be commit f1e508e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zds/member/forms.py
Expand Up @@ -155,7 +155,7 @@ def clean(self):
msg = u'Ce nom d\'utilisateur est déjà utilisé'
self._errors['username'] = self.error_class([msg])
# Forbid the use of comma in the username
elif "," in username:
elif username is not None and "," in username:
msg = u'Le nom d\'utilisateur ne peut contenir de virgules'
self._errors['username'] = self.error_class([msg])

Expand Down

0 comments on commit f1e508e

Please sign in to comment.