Commit ac908d6a authored by chirac's avatar chirac
Browse files

Typo

parent 1cdd2d44
......@@ -20,7 +20,7 @@ def linux_user_validator(login):
""" Validation du pseudo pour respecter les contraintes unix"""
UNIX_LOGIN_PATTERN = re.compile("^[a-z_][a-z0-9_-]*[$]?$")
if not UNIX_LOGIN_PATTERN.match(login):
raise forms.ValidationError("Ce login n'est pas valide et contient des carractères interdits")
raise forms.ValidationError("Ce login (%s) n'est pas valide et contient des caractères interdits" % login)
return
def mailalias_check(alias):
......@@ -93,7 +93,7 @@ class User(AbstractBaseUser):
name = models.CharField(max_length=255)
surname = models.CharField(max_length=255)
pseudo = models.CharField(max_length=32, unique=True, help_text="Doit contenir uniquement des lettres, chiffres, ou tirets", validators=[linux_user_validator])
pseudo = models.CharField(max_length=32, unique=True, help_text="Doit contenir uniquement des lettres, chiffres, ou tirets. ", validators=[linux_user_validator])
email = models.EmailField()
shell = models.ForeignKey('ListShell', on_delete=models.PROTECT, null=True, blank=True)
comment = models.CharField(help_text="Commentaire, promo", max_length=255, blank=True)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment