fix: refactory grid usage per wuttaweb
This commit is contained in:
parent
5e60a9e0af
commit
6a26de3622
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue