8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

Prevent user email from being null

This commit is contained in:
Jean-Romain Garnier 2020-04-21 16:31:26 +00:00 committed by Gabriel Detraz
parent eb4dd7ebe3
commit b119bfeb65
2 changed files with 21 additions and 1 deletions

View 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),
),
]

View file

@ -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(