Debian Codegraph @

django/contrib/auth/migrations/0004_alter_user_username_opts.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", "0003_alter_user_email_max_length"),
8 ]
9
10 # No database changes; modifies validators and error_messages (#13147).
11 operations = [
12 migrations.AlterField(
13 model_name="user",
14 name="username",
15 field=models.CharField(
16 error_messages={"unique": "A user with that username already exists."},
17 max_length=30,
18 validators=[validators.UnicodeUsernameValidator()],
19 help_text=(
20 "Required. 30 characters or fewer. Letters, digits and @/./+/-/_ "
21 "only."
22 ),
23 unique=True,
24 verbose_name="username",
25 ),
26 ),
27 ]