(self, header, agg_column, format_fn=None, slug=None, *args, **kwargs)
Args:
            :param header:
                The column header.
            :param args:
                Additional positional arguments will be passed on when creating the DataTablesColumn
            :param agg_column:
                Instance of sqlagg column class. See sqlagg.columns.BaseColumn
        Kwargs:
            :param header_group=None:
                An instance of corehq.apps.reports.datatables.DataTablesColumnGroup to which this column header will
                be added.
            :param sortable:
                Indicates if the column should be sortable. If true and no format_fn is provided then
                the default datatables format function is used. Defaults to True.
            :param sort_type:
                See corehq.apps.reports.datatables.DTSortType
            :param format_fn=None:
                Function to apply to value before display. Useful for formatting and sorting.
                See corehq.apps.reports.util.format_datatables_data
            :param slug=None:
                Unique ID for the column. If not supplied assumed to be 'agg_column.name'.
                This is used by the Report API.
            :param kwargs:
                Additional keyword arguments will be passed on when creating the DataTablesColumn
Args:
            :param header:
                The column header.
            :param args:
                Additional positional arguments will be passed on when creating the DataTablesColumn
            :param agg_column:
                Instance of sqlagg column class. See sqlagg.columns.BaseColumn
        Kwargs:
            :param header_group=None:
                An instance of corehq.apps.reports.datatables.DataTablesColumnGroup to which this column header will
                be added.
            :param sortable:
                Indicates if the column should be sortable. If true and no format_fn is provided then
                the default datatables format function is used. Defaults to True.
            :param sort_type:
                See corehq.apps.reports.datatables.DTSortType
            :param format_fn=None:
                Function to apply to value before display. Useful for formatting and sorting.
                See corehq.apps.reports.util.format_datatables_data
            :param slug=None:
                Unique ID for the column. If not supplied assumed to be 'agg_column.name'.
                This is used by the Report API.
            :param kwargs:
                Additional keyword arguments will be passed on when creating the DataTablesColumn
Args : : param header : The column header . : param args : Additional positional arguments will be passed on when creating the DataTablesColumn : param agg_column : Instance of sqlagg column class . See sqlagg . columns . BaseColumn Kwargs : : param header_group = None : An instance of corehq . apps . reports . datatables . DataTablesColumnGroup to which this column header will be added . : param sortable : Indicates if the column should be sortable . If true and no format_fn is provided then the default datatables format function is used . Defaults to True . : param sort_type : See corehq . apps . reports . datatables . DTSortType : param format_fn = None : Function to apply to value before display . Useful for formatting and sorting . See corehq . apps . reports . util . format_datatables_data : param slug = None : Unique ID for the column . If not supplied assumed to be agg_column . name . This is used by the Report API . : param kwargs : Additional keyword arguments will be passed on when creating the DataTablesColumn
def __init__(self, header, agg_column, format_fn=None, slug=None, *args, **kwargs):
        """
        Args:
            :param header:
                The column header.
            :param args:
                Additional positional arguments will be passed on when creating the DataTablesColumn
            :param agg_column:
                Instance of sqlagg column class. See sqlagg.columns.BaseColumn
        Kwargs:
            :param header_group=None:
                An instance of corehq.apps.reports.datatables.DataTablesColumnGroup to which this column header will
                be added.
            :param sortable:
                Indicates if the column should be sortable. If true and no format_fn is provided then
                the default datatables format function is used. Defaults to True.
            :param sort_type:
                See corehq.apps.reports.datatables.DTSortType
            :param format_fn=None:
                Function to apply to value before display. Useful for formatting and sorting.
                See corehq.apps.reports.util.format_datatables_data
            :param slug=None:
                Unique ID for the column. If not supplied assumed to be 'agg_column.name'.
                This is used by the Report API.
            :param kwargs:
                Additional keyword arguments will be passed on when creating the DataTablesColumn

        """
        self.slug = slug or agg_column.name

        if 'sortable' not in kwargs:
            kwargs['sortable'] = True

        if kwargs['sortable'] and 'sort_type' not in kwargs and not isinstance(agg_column, SimpleColumn):
            kwargs['sort_type'] = DTSortType.NUMERIC
            format_fn = format_fn or format_data

        self.view = agg_column

        self.header_group = kwargs.pop('header_group', None)
        self.header = header

        self.data_tables_column = DataTablesColumn(header, *args, **kwargs)
        if self.header_group:
            self.header_group.add_column(self.data_tables_column)

        super(DatabaseColumn, self).__init__(format_fn=format_fn)
def __init__ ( self , header , agg_column , format_fn = None , slug = None , * args , * * kwargs ) : self . slug = slug or agg_column . name if 'sortable' not in kwargs : kwargs [ 'sortable' ] = True if kwargs [ 'sortable' ] and 'sort_type' not in kwargs and not isinstance ( agg_column , SimpleColumn ) : kwargs [ 'sort_type' ] = DTSortType . NUMERIC format_fn = format_fn or format_data self . view = agg_column self . header_group = kwargs . pop ( 'header_group' , None ) self . header = header self . data_tables_column = DataTablesColumn ( header , * args , * * kwargs ) if self . header_group : self . header_group . add_column ( self . data_tables_column ) super ( DatabaseColumn , self ) . __init__ ( format_fn = format_fn )