8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 07:23:46 +00:00

Make email field mandatory

This commit is contained in:
Jean-Romain Garnier 2020-02-16 19:08:44 +00:00 committed by Supelec Rezo Rennes
parent fb97849609
commit 60ea067127
2 changed files with 21 additions and 2 deletions

View file

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-02-16 18:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0084_auto_20191120_0159'),
]
operations = [
migrations.AlterField(
model_name='user',
name='email',
field=models.EmailField(default='', help_text='External email address allowing us to contact you.', max_length=254),
preserve_default=False,
),
]

View file

@ -192,8 +192,6 @@ class User(
validators=[linux_user_validator], validators=[linux_user_validator],
) )
email = models.EmailField( email = models.EmailField(
blank=True,
null=True,
help_text=_("External email address allowing us to contact you."), help_text=_("External email address allowing us to contact you."),
) )
local_email_redirect = models.BooleanField( local_email_redirect = models.BooleanField(