def columns_formatter(cls, colname):
        """Decorator to mark a function as columns formatter."""
        def wrapper(func):
            cls.columns_formatters[colname] = func
            return func
        return wrapper