def get_course_creator_status(user):
 user = CourseCreator.objects.filter(user=user)
 if (user.count() == 0):
  return None
 else:
  return user[0].state

def get_course_creator_status ( user ) : user = CourseCreator . objects . filter ( user = user ) if ( user . count ( ) == 0 ) : return None else : return user [ 0 ] . state
returns the status for a particular user .