def get_course_tag(user, course_id, key):
 try:
  record = UserCourseTag.objects.get(user=user, course_id=course_id, key=key)
  return record.value
 except UserCourseTag.DoesNotExist:
  return None

def get_course_tag ( user , course_id , key ) : try : record = UserCourseTag . objects . get ( user = user , course_id = course_id , key = key ) return record . value except UserCourseTag . DoesNotExist : return None
gets the value of the users course tag for the specified key in the specified course_id .