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)