fix: refactory grid usage per wuttaweb

This commit is contained in:
Lance Edgar 2024-08-16 15:05:03 -05:00
parent 5e60a9e0af
commit 6a26de3622
2 changed files with 4 additions and 2 deletions

View file

@ -125,7 +125,8 @@ class UserGroupView(CoreOfficeMasterView):
permission_prefix = self.get_permission_prefix()
factory = self.get_grid_factory()
g = factory(
key='{}.users'.format(route_prefix),
self.request,
key=f'{route_prefix}.users',
data=[],
columns=[
'username',

View file

@ -248,7 +248,8 @@ class ProductView(CoreOfficeMasterView):
factory = self.get_grid_factory()
g = factory(
key='{}.vendor_items'.format(route_prefix),
self.request,
key=f'{route_prefix}.vendor_items',
data=[],
columns=[
'vendor_name',