@receiver(update_creator_state, sender=CourseCreator)
def update_creator_group_callback(sender, **kwargs):
 user = kwargs['user']
 updated_state = kwargs['state']
 update_course_creator_group(kwargs['caller'], user, (updated_state == CourseCreator.GRANTED))

@ receiver ( update_creator_state , sender = CourseCreator ) def update_creator_group_callback ( sender , ** kwargs ) : user = kwargs [ 'user' ] updated_state = kwargs [ 'state' ] update_course_creator_group ( kwargs [ 'caller' ] , user , ( updated_state == CourseCreator . GRANTED ) )
callback for when the models creator status has changed .