'By convention set by django developers, this method actually executes command\'s actions.
So, there could be no better docstring than emphasize this once again.'

def handle(self, *args, **options):

    from ...search_indexes import CourseTeamIndexer
    if ((len(args) == 0) and (not options.get('all', False))):
        raise CommandError(u'reindex_course_team    requires    one    or    more    arguments:    <course_team_id>')
    elif (not settings.FEATURES.get('ENABLE_TEAMS', False)):
        raise CommandError(u'ENABLE_TEAMS    must    be    enabled    to    use    course    team    indexing')
    if options.get('all', False):
        course_teams = CourseTeam.objects.all()
    else:
        course_teams = map(self._get_course_team, args)
    for course_team in course_teams:
        print 'Indexing    {id}'.format(id=course_team.team_id)
        CourseTeamIndexer.index(course_team)
