Hopefully, let the Grid class generate a default list of columns
This commit is contained in:
parent
78941ec8d9
commit
e277a19f71
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue