Skip to content
Snippets Groups Projects
Verified Commit 553771a8 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: use group names from the settings

parent 8ab571c9
No related branches found
No related tags found
1 merge request!29Use docker main tag
# Generated by Django 4.2.6 on 2023-12-07 20:29
from django.conf import settings
from django.db import migrations
def add_groups(apps, _):
Group = apps.get_model("auth", "Group")
Group.objects.get_or_create(name="Program")
Group.objects.get_or_create(name="Broadcast")
Group.objects.get_or_create(name="BroadcastPlus")
Group.objects.get_or_create(name=settings.PRIVILEGED_GROUP)
Group.objects.get_or_create(name=settings.ENTITLED_GROUPS[0])
Group.objects.get_or_create(name=settings.ENTITLED_GROUPS[1])
class Migration(migrations.Migration):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment