Hopefully, let the Grid class generate a default list of columns

This commit is contained in:
Lance Edgar 2018-10-19 20:26:04 -05:00
parent 78941ec8d9
commit e277a19f71

View file

@ -309,10 +309,12 @@ class MasterView(View):
return grid.make_visible_data() return grid.make_visible_data()
def get_grid_columns(self): def get_grid_columns(self):
"""
Returns the default list of grid column names. This may return
``None``, in which case the grid will generate its own default list.
"""
if hasattr(self, 'grid_columns'): if hasattr(self, 'grid_columns'):
return self.grid_columns return self.grid_columns
# TODO
raise NotImplementedError
def make_grid_kwargs(self, **kwargs): def make_grid_kwargs(self, **kwargs):
""" """