def clear_override_for_user(user, block, name):
 try:
  StudentFieldOverride.objects.get(course_id=block.runtime.course_id, student_id=user.id, location=block.location, field=name).delete()
 except StudentFieldOverride.DoesNotExist:
  pass

def clear_override_for_user ( user , block , name ) : try : StudentFieldOverride . objects . get ( course_id = block . runtime . course_id , student_id = user . id , location = block . location , field = name ) . delete ( ) except StudentFieldOverride . DoesNotExist : pass
clears a previously set field override for the user .