mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 03:13:12 +00:00
Prevent user email from being null
This commit is contained in:
parent
4a7c5c1bdb
commit
1755f6e624
2 changed files with 21 additions and 1 deletions
20
users/migrations/0090_auto_20200421_1825.py
Normal file
20
users/migrations/0090_auto_20200421_1825.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.28 on 2020-04-21 16:25
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('users', '0089_auto_20200418_0112'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='email',
|
||||
field=models.EmailField(blank=True, default='', help_text='External email address allowing us to contact you.', max_length=254),
|
||||
),
|
||||
]
|
|
@ -206,7 +206,7 @@ class User(
|
|||
)
|
||||
email = models.EmailField(
|
||||
blank=True,
|
||||
null=True,
|
||||
default="",
|
||||
help_text=_("External email address allowing us to contact you."),
|
||||
)
|
||||
local_email_redirect = models.BooleanField(
|
||||
|
|
Loading…
Reference in a new issue