File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Generated by Django 4.1.2 on 2022-11-15 16:46
2+
3+ from django .db import migrations , models
4+
5+
6+ class Migration (migrations .Migration ):
7+
8+ dependencies = [
9+ ("users" , "0014_alter_customuser_birthday" ),
10+ ]
11+
12+ operations = [
13+ migrations .AddField (
14+ model_name = "customuser" ,
15+ name = "speciality" ,
16+ field = models .CharField (blank = True , max_length = 255 ),
17+ ),
18+ ]
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ class CustomUser(AbstractUser):
4444 organization: CharField instance the user's place of study or work.
4545 datetime_updated: A DateTimeField indicating date of update.
4646 datetime_created: A DateTimeField indicating date of creation.
47+ speciality: CharField instance the user's specialty.
4748 """
4849
4950 ADMIN = ADMIN
@@ -71,6 +72,7 @@ class CustomUser(AbstractUser):
7172 region = models .CharField (max_length = 255 , blank = True )
7273 city = models .CharField (max_length = 255 , blank = True )
7374 organization = models .CharField (max_length = 255 , blank = True )
75+ speciality = models .CharField (max_length = 255 , blank = True )
7476
7577 datetime_updated = models .DateTimeField (null = False , auto_now = True )
7678 datetime_created = models .DateTimeField (null = False , auto_now_add = True )
You can’t perform that action at this time.
0 commit comments