Skip to content

Commit

Permalink
feat: add wine penalty manager role (#3167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Terbau committed Apr 17, 2024
1 parent 9fbe880 commit 9637b84
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/authentication/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class RoleType(models.TextChoices):
DEPUTY_LEADER = "deputy_leader", _("Nestleder")
TREASURER = "treasurer", _("Økonomiansvarlig")
CHIEF_EDITOR = "chief_editor", _("Redaktør")
WINE_PENALTY_MANAGER = "wine_penalty_manager", _("Vinstraffansvarlig")


class FieldOfStudyType(models.IntegerChoices):
Expand Down
30 changes: 30 additions & 0 deletions apps/authentication/migrations/0057_alter_grouprole_role_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Generated by Django 5.0.4 on 2024-04-17 16:39

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("authentication", "0056_delete_email"),
]

operations = [
migrations.AlterField(
model_name="grouprole",
name="role_type",
field=models.CharField(
choices=[
("leader", "Leder"),
("board_member", "Styremedlem"),
("deputy_leader", "Nestleder"),
("treasurer", "Økonomiansvarlig"),
("chief_editor", "Redaktør"),
("wine_penalty_manager", "Vinstraffansvarlig"),
],
max_length=256,
unique=True,
verbose_name="Rolle",
),
),
]

0 comments on commit 9637b84

Please sign in to comment.