loadGroups.py 264 Bytes
Newer Older
1
2
3
4
from django.contrib.auth.models import Group


class LoadGroups(object):
Florent Chehab's avatar
Florent Chehab committed
5
6
7
    """Class to add the default user groups to the app
    """

8
    def __init__(self):
9
10
        Group.objects.get_or_create(name="Moderators")
        Group.objects.get_or_create(name="DRI")