-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding validation to update user (#400)
* Adding validation to update user * Removing logs * Adjusting role validation rules
- Loading branch information
1 parent
d7715c5
commit ba67808
Showing
4 changed files
with
67 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
server/cshr/migrations/0009_alter_user_gender_alter_user_team_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Generated by Django 4.2.9 on 2024-04-23 09:13 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("cshr", "0008_alter_vacation_actual_days"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="user", | ||
name="gender", | ||
field=models.CharField( | ||
choices=[("Male", "male"), ("Female", "female")], max_length=30 | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="user", | ||
name="team", | ||
field=models.CharField( | ||
choices=[ | ||
("Business Development", "Businessdevelopment"), | ||
("Development", "Development"), | ||
("HR & Finance", "Hrandfinance"), | ||
("QA", "Qa"), | ||
("Marketing", "Marketing"), | ||
("Operations", "Operations"), | ||
("Support", "Support"), | ||
], | ||
max_length=30, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="user", | ||
name="user_type", | ||
field=models.CharField( | ||
choices=[ | ||
("Admin", "admin"), | ||
("User", "user"), | ||
("Supervisor", "supervisor"), | ||
], | ||
max_length=30, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters