Fix grid URL bug

This commit is contained in:
Lance Edgar 2016-05-02 10:35:54 -05:00
parent 1c0c148294
commit 2bd15ca5c7

View file

@ -71,7 +71,7 @@ class DepartmentsView(MasterView):
employees = AlchemyGrid('departments.employees', self.request, data=employees, model_class=model.Employee, employees = AlchemyGrid('departments.employees', self.request, data=employees, model_class=model.Employee,
main_actions=[ main_actions=[
GridAction('view', icon='zoomin', 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) employees.configure(include=[employees.display_name], readonly=True)
kwargs['employees'] = employees kwargs['employees'] = employees