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()
|
permission_prefix = self.get_permission_prefix()
|
||||||
factory = self.get_grid_factory()
|
factory = self.get_grid_factory()
|
||||||
g = factory(
|
g = factory(
|
||||||
key='{}.users'.format(route_prefix),
|
self.request,
|
||||||
|
key=f'{route_prefix}.users',
|
||||||
data=[],
|
data=[],
|
||||||
columns=[
|
columns=[
|
||||||
'username',
|
'username',
|
||||||
|
|
|
@ -248,7 +248,8 @@ class ProductView(CoreOfficeMasterView):
|
||||||
|
|
||||||
factory = self.get_grid_factory()
|
factory = self.get_grid_factory()
|
||||||
g = factory(
|
g = factory(
|
||||||
key='{}.vendor_items'.format(route_prefix),
|
self.request,
|
||||||
|
key=f'{route_prefix}.vendor_items',
|
||||||
data=[],
|
data=[],
|
||||||
columns=[
|
columns=[
|
||||||
'vendor_name',
|
'vendor_name',
|
||||||
|
|
Loading…
Reference in a new issue