init_groups.py 349 Bytes
Newer Older
luxcem's avatar
luxcem committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from django.core.management.base import BaseCommand
from django.contrib.auth.models import Group, Permission

groups = ["jedi", "padawan"]
permissions = {
    "jedi": [],
    "padawans": []
}


class Command(BaseCommand):
    help = "Adds initial groups for the application (jedi and padawans)"

    def handle(self, *args, **options):
luxcem's avatar
luxcem committed
15
        pass