@redirect_legacy_projects
def q_view_new(request, project_name=None, ontology_key=None, document_type=None):
    '\n    this is never exposed by templates\n    but a user might still try to navigate explicitly to this URL\n    just return an error telling them not to try that\n    :param request:\n    :param project_name:\n    :param ontology_key:\n    :param document_type:\n    :return:\n    '
    context = add_parameters_to_context(request)
    (validity, project, ontology, model_proxy, model_customization, msg) = validate_view_arguments(project_name=project_name, ontology_key=ontology_key, document_type=document_type)
    if (not validity):
        return q_error(request, msg)
    msg = 'The ES-DOC Questionnaire only supports viewing of <em>existing</em> documents.'
    return q_error(request, msg)
this is never exposed by templates
but a user might still try to navigate explicitly to this URL
just return an error telling them not to try that
:param request:
:param project_name:
:param ontology_key:
:param document_type:
:return:
@redirect_legacy_projects
def q_view_new(request, project_name=None, ontology_key=None, document_type=None):
    '\n    this is never exposed by templates\n    but a user might still try to navigate explicitly to this URL\n    just return an error telling them not to try that\n    :param request:\n    :param project_name:\n    :param ontology_key:\n    :param document_type:\n    :return:\n    '
    context = add_parameters_to_context(request)
    (validity, project, ontology, model_proxy, model_customization, msg) = validate_view_arguments(project_name=project_name, ontology_key=ontology_key, document_type=document_type)
    if (not validity):
        return q_error(request, msg)
    msg = 'The ES-DOC Questionnaire only supports viewing of <em>existing</em> documents.'
    return q_error(request, msg)