add longer fields to custom user
This commit is contained in:
parent
38ce57bdae
commit
373d433516
4 changed files with 64 additions and 7 deletions
24
pandora/system/migrations/0003_field_length.py
Normal file
24
pandora/system/migrations/0003_field_length.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Generated by Django 3.0.6 on 2020-05-30 10:10
|
||||
|
||||
import django.contrib.auth.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('system', '0002_rename_user_table'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='email',
|
||||
field=models.EmailField(blank=True, max_length=254, verbose_name='email address'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='username',
|
||||
field=models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 255 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=255, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username'),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue