Sith/core/migrations/0003_auto_20160902_1914.py

30 lines
988 B
Python
Raw Normal View History

2016-09-02 17:31:47 +00:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import django.core.validators
2024-06-24 11:07:36 +00:00
from django.db import migrations, models
2016-09-02 17:31:47 +00:00
class Migration(migrations.Migration):
2018-10-04 19:29:19 +00:00
dependencies = [("core", "0002_auto_20160831_0144")]
2016-09-02 17:31:47 +00:00
operations = [
migrations.AlterField(
2018-10-04 19:29:19 +00:00
model_name="user",
name="username",
field=models.CharField(
error_messages={"unique": "A user with that username already exists."},
max_length=254,
unique=True,
validators=[
django.core.validators.RegexValidator(
"^[\\w.+-]+$",
"Enter a valid username. This value may contain only letters, numbers and ./+/-/_ characters.",
)
],
help_text="Required. 254 characters or fewer. Letters, digits and ./+/-/_ only.",
verbose_name="username",
),
)
2016-09-02 17:31:47 +00:00
]