From 2bd15ca5c75555df053063f9fd1543ff501d772c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 2 May 2016 10:35:54 -0500 Subject: [PATCH] Fix grid URL bug --- tailbone/views/departments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/departments.py b/tailbone/views/departments.py index 42913266..d0a3f33d 100644 --- a/tailbone/views/departments.py +++ b/tailbone/views/departments.py @@ -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