@receiver(post_save, sender=CourseTeam, dispatch_uid='teams.signals.course_team_post_save_callback')
def course_team_post_save_callback(**kwargs):
 try:
  CourseTeamIndexer.index(kwargs['instance'])
 except ElasticSearchConnectionError:
  pass

@ receiver ( post_save , sender = CourseTeam , dispatch_uid = 'teams.signals.course_team_post_save_callback' ) def course_team_post_save_callback ( ** kwargs ) : try : CourseTeamIndexer . index ( kwargs [ 'instance' ] ) except ElasticSearchConnectionError : pass
reindex object after save .