Exemple #1
0
 def handle(self, *args, **options):
     """Create default set of groups and optionally updates them and moves
     users around to default group.
     """
     create_groups(options['update'])
     if options['projects']:
         for project in Project.objects.iterator():
             setup_project_groups(Project, project)
Exemple #2
0
 def handle(self, *args, **options):
     """Create default set of groups and optionally updates them and moves
     users around to default group.
     """
     create_groups(options['update'])
     if options['projects']:
         for project in Project.objects.iterator():
             setup_project_groups(Project, project)