-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path0054_alter_customuser_first_name_and_more.py
More file actions
57 lines (52 loc) · 1.61 KB
/
0054_alter_customuser_first_name_and_more.py
File metadata and controls
57 lines (52 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Generated by Django 4.2.11 on 2025-08-20 07:55
from django.db import migrations, models
import functools
import users.validators
class Migration(migrations.Migration):
dependencies = [
("users", "0053_customuser_is_mospolytech_student_and_more"),
]
operations = [
migrations.AlterField(
model_name="customuser",
name="first_name",
field=models.CharField(
max_length=255,
validators=[
functools.partial(
users.validators.user_name_validator, *(), **{"field_name": "Имя"}
)
],
),
),
migrations.AlterField(
model_name="customuser",
name="last_name",
field=models.CharField(
max_length=255,
validators=[
functools.partial(
users.validators.user_name_validator,
*(),
**{"field_name": "Фамилия"}
)
],
),
),
migrations.AlterField(
model_name="customuser",
name="patronymic",
field=models.CharField(
blank=True,
max_length=255,
null=True,
validators=[
functools.partial(
users.validators.user_name_validator,
*(),
**{"field_name": "Отчество"}
)
],
),
),
]