Skip to content

Commit cec958e

Browse files
authored
Merge pull request #31 from PROCOLLAB-github/dev
Add speciality field to CustomUser model
2 parents 3afbe9a + 4040015 commit cec958e

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
]

users/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)