From 46c626c96f3dacfb60dd8e06ecec9a89a1e8a74c Mon Sep 17 00:00:00 2001 From: tr4ck3ur Date: Tue, 14 Jul 2015 20:00:02 +0200 Subject: [PATCH] Fix task Area selction after removing one --- jm2l/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jm2l/views.py b/jm2l/views.py index a637d47..f1e8dec 100644 --- a/jm2l/views.py +++ b/jm2l/views.py @@ -430,7 +430,7 @@ def tasks(request): DBSession.add(Task) DBSession.flush() return HTTPFound(location=request.route_url('list_task')+"#"+slugify(Task.area.name)) - return {'form':form, 'area':slugify(Areas[Task.area_uid-1].name)} + return {'form':form, 'area':slugify(Task.area.name)} @view_config(route_name='handle_pole', renderer='jm2l:templates/Staff/pole.mako') def tasks_area(request):