Clipper logins may be > 8 characters

This commit is contained in:
Martin Pépin 2017-09-04 13:25:09 +02:00
parent 387edd2fd5
commit 51f4bf3fb5
5 changed files with 27 additions and 19 deletions

View file

@ -38,7 +38,9 @@ TYPE_COMMENT_FIELD = (
@python_2_unicode_compatible
class CofProfile(models.Model):
user = models.OneToOneField(User, related_name="profile")
login_clipper = models.CharField("Login clipper", max_length=8, blank=True)
login_clipper = models.CharField(
"Login clipper", max_length=32, blank=True
)
is_cof = models.BooleanField("Membre du COF", default=False)
num = models.IntegerField("Numéro d'adhérent", blank=True, default=0)
phone = models.CharField("Téléphone", max_length=20, blank=True)