From ec9471391de5c151b77f45bff1f885425c7bb28e Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Sat, 30 Jun 2018 03:22:46 +0200 Subject: [PATCH] Augmente la valeur de l'alias --- users/migrations/0074_auto_20180629_1717.py | 2 +- users/models.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/users/migrations/0074_auto_20180629_1717.py b/users/migrations/0074_auto_20180629_1717.py index 446a2cdd..ad450b5d 100644 --- a/users/migrations/0074_auto_20180629_1717.py +++ b/users/migrations/0074_auto_20180629_1717.py @@ -22,6 +22,6 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='mailalias', name='valeur', - field=models.CharField(help_text="Valeur de l'alias mail", max_length=64, unique=True), + field=models.CharField(help_text="Valeur de l'alias mail", max_length=128, unique=True), ), ] diff --git a/users/models.py b/users/models.py index bc83b997..8f0e88a2 100644 --- a/users/models.py +++ b/users/models.py @@ -936,7 +936,6 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser, def __str__(self): return self.pseudo - class Adherent(User): """ A class representing a member (it's a user with special informations) """ @@ -1687,7 +1686,7 @@ class MailAlias(RevMixin, AclMixin, models.Model): ) valeur = models.CharField( unique=True, - max_length=64, + max_length=128, help_text="Valeur de l'alias mail" )