Add pagination to price, cost history grids for product view

This commit is contained in:
Lance Edgar 2020-08-17 21:38:12 -05:00
parent a038f2a98d
commit b5028ab2d0
3 changed files with 11 additions and 4 deletions

View file

@ -985,6 +985,9 @@ class Grid(object):
context['empty_labels'] = empty_labels
if 'grid_columns' not in context:
context['grid_columns'] = self.get_buefy_columns()
context.setdefault('paginated', False)
if context['paginated']:
context.setdefault('per_page', 20)
# locate the 'view' action
# TODO: this should be easier, and/or moved elsewhere?