Fix grid URL bug
This commit is contained in:
parent
1c0c148294
commit
2bd15ca5c7
|
@ -71,7 +71,7 @@ class DepartmentsView(MasterView):
|
|||
employees = AlchemyGrid('departments.employees', self.request, data=employees, model_class=model.Employee,
|
||||
main_actions=[
|
||||
GridAction('view', icon='zoomin',
|
||||
url=lambda x: self.request.route_url('employees.view', uuid=x.uuid)),
|
||||
url=lambda r, i: self.request.route_url('employees.view', uuid=r.uuid)),
|
||||
])
|
||||
employees.configure(include=[employees.display_name], readonly=True)
|
||||
kwargs['employees'] = employees
|
||||
|
|
Loading…
Reference in a new issue