@has_access
    @expose("/checkbox/<model_view>/<id_>/<attr>/<value>", methods=['GET'])
    def checkbox(self, model_view, id_, attr, value):
        model = None
        if model_view == 'TableColumnInlineView':
            model = models.TableColumn
        elif model_view == 'DruidColumnInlineView':
            model = models.DruidColumn

        obj = db.session.query(model).filter_by(id=id_).first()
        if obj:
            setattr(obj, attr, value == 'true')
            db.session.commit()
        return Response("OK", mimetype="application/json")
Returns absolute URL of the object
dataset/ETHPy150Open airbnb/caravel/caravel/views.py/Caravel.checkbox--crossover with--dataset/ETHPy150Open treeio/treeio/treeio/documents/models.py/Document.get_absolute_url