misc: increase allowed length of name attributes (#26698)

This commit is contained in:
Frédéric Péters 2018-09-25 11:07:54 +02:00
parent 7d2c18eb54
commit 6bcc96cbcd
2 changed files with 27 additions and 2 deletions

View File

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-09-25 09:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('custom_user', '0015_auto_20170707_1653'),
]
operations = [
migrations.AlterField(
model_name='user',
name='first_name',
field=models.CharField(blank=True, max_length=128, verbose_name='first name'),
),
migrations.AlterField(
model_name='user',
name='last_name',
field=models.CharField(blank=True, max_length=128, verbose_name='last name'),
),
]

View File

@ -83,8 +83,8 @@ class User(AbstractBaseUser, PermissionMixin):
uuid = models.CharField(_('uuid'), max_length=32,
default=utils.get_hex_uuid, editable=False, unique=True)
username = models.CharField(_('username'), max_length=256, null=True, blank=True)
first_name = models.CharField(_('first name'), max_length=64, blank=True)
last_name = models.CharField(_('last name'), max_length=64, blank=True)
first_name = models.CharField(_('first name'), max_length=128, blank=True)
last_name = models.CharField(_('last name'), max_length=128, blank=True)
email = models.EmailField(_('email address'), blank=True,
validators=[validators.EmailValidator], max_length=254)
email_verified = models.BooleanField(