You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
848 B

from __future__ import unicode_literals
from django.contrib.auth.models import Group
from django.db import migrations
def init_group(*_args, **_kwargs):
Group.objects.get_or_create(name='admin')
Group.objects.get_or_create(name='students')
Group.objects.get_or_create(name='teachers')
Group.objects.get_or_create(name='managers')
Group.objects.get_or_create(name='lead_managers')
Group.objects.get_or_create(name='curators')
Group.objects.get_or_create(name='partners')
Group.objects.get_or_create(name='supports')
Group.objects.get_or_create(name='finance')
Group.objects.get_or_create(name='project_managers')
class Migration(migrations.Migration):
initial = True
dependencies = [
('access', '0001_initial'),
]
operations = [
migrations.RunPython(init_group)
]