def get_extended_due(course, unit, user):
 try:
  override = StudentFieldOverride.objects.get(course_id=course.id, student=user, location=unit.location, field='due')
  return DATE_FIELD.from_json(json.loads(override.value))
 except StudentFieldOverride.DoesNotExist:
  return None

def get_extended_due ( course , unit , user ) : try : override = StudentFieldOverride . objects . get ( course_id = course . id , student = user , location = unit . location , field = 'due' ) return DATE_FIELD . from_json ( json . loads ( override . value ) ) except StudentFieldOverride . DoesNotExist : return None
gets the overridden due date for the given user on the given unit .