@property
    def columns(self):
        db_columns = [c for sql_conf in self.sql_column_configs for c in sql_conf.columns]
        fields = {c.slug for c in db_columns}

        return db_columns + [
            DatabaseColumn('', SimpleColumn(deferred_filter.field))
            for deferred_filter in self._deferred_filters.values()
            if deferred_filter.field not in fields]
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/userreports/reports/data_source.py/ConfigurableReportDataSource.columns/original