Show active flag for users mini-grid on Role view page

This commit is contained in:
Lance Edgar 2019-10-14 11:54:01 -05:00
parent ec8ce36bd5
commit c0219938e3

View file

@ -123,7 +123,9 @@ class RolesView(PrincipalMasterView):
grids.GridAction('view', icon='zoomin',
url=lambda r, i: self.request.route_url('users.view', uuid=r.uuid))
]
kwargs['users'] = grids.Grid(None, users, ['username'], request=self.request, model_class=model.User,
kwargs['users'] = grids.Grid(None, users, ['username', 'active'],
request=self.request,
model_class=model.User,
main_actions=actions)
else:
kwargs['users'] = None