From 240fc667b9fb16a405b3f1cc67a74586d270428f Mon Sep 17 00:00:00 2001 From: tr4ck3ur Date: Fri, 20 Feb 2015 19:55:54 +0100 Subject: Fix Tasks --- jm2l/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jm2l/views.py b/jm2l/views.py index 90c4c32..8deacb2 100644 --- a/jm2l/views.py +++ b/jm2l/views.py @@ -301,6 +301,7 @@ def tasks(request): DBSession.merge(Task) else: DBSession.add(Task) + DBSession.flush() return HTTPFound(location=request.route_url('list_task')+"#"+slugify(Task.area.name)) return {'form':form } -- cgit v1.2.3-70-g09d2