[Fixed]-How to define dynamic number of columns in django-datatables-view

1👍

BaseDatatableView implements DatatableMixin which has a method get_columns with a default implementation of

def get_columns(self):
    """ Returns the list of columns that are returned in the result set
    """
    return self.columns

You can override it and pass your custom columns here (using your parameter)

Leave a comment