def remove_credit_requirement_status(username, course_key, req_namespace, req_name):
 req_to_remove = CreditRequirement.get_course_requirements(course_key, namespace=req_namespace, name=req_name)
 if (not req_to_remove):
  log.error(u'Could not remove credit requirement in course "%s" with namespace "%s" and name "%s" because the requirement does not exist. ', unicode(course_key), req_namespace, req_name)
  return
 CreditRequirementStatus.remove_requirement_status(username, req_to_remove)

def remove_credit_requirement_status ( username , course_key , req_namespace , req_name ) : req_to_remove = CreditRequirement . get_course_requirements ( course_key , namespace = req_namespace , name = req_name ) if ( not req_to_remove ) : log . error ( u'Could not remove credit requirement in course "%s" with namespace "%s" and name "%s" because the requirement does not exist. ' , unicode ( course_key ) , req_namespace , req_name ) return CreditRequirementStatus . remove_requirement_status ( username , req_to_remove )
remove the users requirement status .