aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jm2l/views.py1
1 files changed, 1 insertions, 0 deletions
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 }