@frontend.route('/objects/<int:object_id>/versions/')
@object_permissions_required(Permissions.READ, on_unauthorized=on_unauthorized)
def object_versions(object_id):
    object = get_object(object_id=object_id)
    if (object is None):
        return flask.abort(404)
    object_versions = get_object_versions(object_id=object_id)
    object_versions.sort(key=(lambda object_version: (- object_version.version_id)))
    return flask.render_template('objects/object_versions.html', get_user=get_user, object=object, object_versions=object_versions)
@frontend.route('/objects/<int:object_id>/versions/')
@object_permissions_required(Permissions.READ, on_unauthorized=on_unauthorized)
def object_versions(object_id):
    object = get_object(object_id=object_id)
    if (object is None):
        return flask.abort(404)
    object_versions = get_object_versions(object_id=object_id)
    object_versions.sort(key=(lambda object_version: (- object_version.version_id)))
    return flask.render_template('objects/object_versions.html', get_user=get_user, object=object, object_versions=object_versions)