Fix bulk-delete for batch rows, allow it for pricing batches

This commit is contained in:
Lance Edgar 2017-08-08 16:57:05 -05:00
parent 2df51bfef8
commit 2dc539c357
3 changed files with 16 additions and 2 deletions

View file

@ -570,6 +570,19 @@ class MasterView(View):
"""
raise NotImplementedError
def get_effective_row_data(self, session=None, sort=False, **kwargs):
"""
Convenience method which returns the "effective" data for the row grid,
filtered (and optionally sorted) to match what would show on the UI,
but not paged.
"""
if session is None:
session = self.Session()
kwargs.setdefault('pageable', False)
kwargs.setdefault('sortable', sort)
grid = self.make_row_grid(session=session, **kwargs)
return grid.make_visible_data()
@classmethod
def get_row_route_prefix(cls):
"""