mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 09:26:27 +00:00
Make email field mandatory
This commit is contained in:
parent
fb97849609
commit
60ea067127
2 changed files with 21 additions and 2 deletions
21
users/migrations/0085_auto_20200216_1959.py
Normal file
21
users/migrations/0085_auto_20200216_1959.py
Normal 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,
|
||||
),
|
||||
]
|
|
@ -192,8 +192,6 @@ class User(
|
|||
validators=[linux_user_validator],
|
||||
)
|
||||
email = models.EmailField(
|
||||
blank=True,
|
||||
null=True,
|
||||
help_text=_("External email address allowing us to contact you."),
|
||||
)
|
||||
local_email_redirect = models.BooleanField(
|
||||
|
|
Loading…
Reference in a new issue