@staticmethod
    def link(**kwargs):
        def url(table, column, row, value):
            del table, value
            r = getattr_path(row, column.attr)
            return r.get_absolute_url() if r else ''

        setdefaults(kwargs, dict(
            cell__url=url,
        ))
        return Column(**kwargs)
Shortcut for creating a cell that is a link. The URL is the result of calling `get_absolute_url()` on the object.
dataset/ETHPy150Open TriOptima/tri.table/lib/tri/table/__init__.py/Column.link