(doc_type, doc_id)
return ObjectDoesNotExist(_("Could not find %(doc_type)s with id %(id)s") % \
                              {"doc_type": doc_type, "id": doc_id})
Builds a 404 error message with standard, translated, verbiage
Builds a 404 error message with standard, translated, verbiage
Builds a 404 error message with standard translated verbiage
def object_does_not_exist(doc_type, doc_id):
    """
    Builds a 404 error message with standard, translated, verbiage
    """
    return ObjectDoesNotExist(_("Could not find %(doc_type)s with id %(id)s") % \
                              {"doc_type": doc_type, "id": doc_id})
def object_does_not_exist ( doc_type , doc_id ) : return ObjectDoesNotExist ( _ ( "Could not find %(doc_type)s with id %(id)s" ) % { "doc_type" : doc_type , "id" : doc_id } )