Skip to content

Commit

Permalink
feat(backend): add organazier role to staff (#46)
Browse files Browse the repository at this point in the history
* its on arian

* migrations
  • Loading branch information
azare242 authored Nov 30, 2023
1 parent 670fbcb commit 965566b
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated by Django 4.2.4 on 2023-11-30 08:10

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("backend_api", "0051_remove_workshop_add_to_calendar_link"),
]

operations = [
migrations.AlterField(
model_name="staff",
name="role",
field=models.CharField(
choices=[("Team Lead", "TL"), ("Member", "MB"), ("Coordinator", "CR")],
default="Executive",
max_length=100,
),
),
migrations.AlterField(
model_name="staff",
name="section_name",
field=models.CharField(
choices=[
("Coordination", "CR"),
("Executive", "EXC"),
("Scientific", "SCI"),
("Technical", "TCH"),
("Graphic", "GRP"),
("Marketing", "MRK"),
],
default="Member",
max_length=100,
),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated by Django 4.2.4 on 2023-11-30 08:16

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("backend_api", "0052_alter_staff_role_alter_staff_section_name"),
]

operations = [
migrations.AlterField(
model_name="staff",
name="role",
field=models.CharField(
choices=[("Team Lead", "TL"), ("Member", "MB"), ("Organizer", "OR")],
default="Executive",
max_length=100,
),
),
migrations.AlterField(
model_name="staff",
name="section_name",
field=models.CharField(
choices=[
("Organizers", "OR"),
("Executive", "EXC"),
("Scientific", "SCI"),
("Technical", "TCH"),
("Graphic", "GRP"),
("Marketing", "MRK"),
],
default="Member",
max_length=100,
),
),
]
4 changes: 3 additions & 1 deletion backend/backend_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,12 @@ def __str__(self):
class Staff(models.Model):
ROLE = [
("Team Lead", "TL"),
("Member", "MB")
("Member", "MB"),
("Organizer", "OR")
]

SECTIONS = [
("Organizers", "OR"),
("Executive", "EXC"),
("Scientific", "SCI"),
("Technical", "TCH"),
Expand Down

0 comments on commit 965566b

Please sign in to comment.