Fix bug in MasterView.get_effective_row_query()

really this method should be removed...
This commit is contained in:
Lance Edgar 2017-10-22 12:55:41 -07:00
parent 8c599f368e
commit 512405f01f

View file

@ -651,16 +651,14 @@ class MasterView(View):
def make_row_grid_tools(self, obj):
return self.make_default_row_grid_tools(obj)
# TODO: depracate / remove this
def get_effective_row_query(self):
"""
Convenience method which returns the "effective" query for the master
grid, filtered and sorted to match what would show on the UI, but not
paged etc.
"""
parent = self.get_instance()
grid = self.make_row_grid(instance=parent, sortable=False, pageable=False,
main_actions=[])
return grid._fa_grid.rows
return self.get_effective_row_data(sort=False)
def get_row_data(self, instance):
"""