1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-11-26 21:27:11 +00:00

Fix mail vide

This commit is contained in:
Gabriel Detraz 2017-11-14 23:06:01 +01:00 committed by root
parent fa55b8f274
commit 366b88ad92
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-11-14 22:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0008_auto_20170705_0001'),
]
operations = [
migrations.AlterField(
model_name='user',
name='email',
field=models.EmailField(max_length=254),
),
]

View File

@ -82,7 +82,7 @@ class User(AbstractBaseUser):
name = models.CharField(max_length=255)
surname = models.CharField(max_length=255)
email = models.EmailField(null=True, blank=True)
email = models.EmailField()
telephone = models.CharField(max_length=15, null=True, blank=True)
adresse = models.CharField(max_length=255, null=True, blank=True)
maxemprunt = models.IntegerField(default=MAX_EMPRUNT, help_text="Maximum d'emprunts autorisés")