Debian Codegraph @

django/contrib/auth/migrations/0007_alter_validators_add_error_messages.py

raw
1 from django.contrib.auth import validators
2 from django.db import migrations, models
3
4
5 class Migration(migrations.Migration):
6 dependencies = [
7 ("auth", "0006_require_contenttypes_0002"),
8 ]
9
10 operations = [
11 migrations.AlterField(
12 model_name="user",
13 name="username",
14 field=models.CharField(
15 error_messages={"unique": "A user with that username already exists."},
16 help_text=(
17 "Required. 30 characters or fewer. Letters, digits and @/./+/-/_ "
18 "only."
19 ),
20 max_length=30,
21 unique=True,
22 validators=[validators.UnicodeUsernameValidator()],
23 verbose_name="username",
24 ),
25 ),
26 ]