aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortr4ck3ur <tr4ck3ur@style-python.fr>2015-02-20 19:55:54 +0100
committertr4ck3ur <tr4ck3ur@style-python.fr>2015-02-20 19:55:54 +0100
commit240fc667b9fb16a405b3f1cc67a74586d270428f (patch)
treefd6b018e3bdfa2f8e822fe1cc2efa2d7cef3d55f
parente6beb8f49622c3cb14ca47916638b6ac91a7b944 (diff)
downloadjm2l-240fc667b9fb16a405b3f1cc67a74586d270428f.tar.gz
jm2l-240fc667b9fb16a405b3f1cc67a74586d270428f.tar.bz2
jm2l-240fc667b9fb16a405b3f1cc67a74586d270428f.tar.xz
jm2l-240fc667b9fb16a405b3f1cc67a74586d270428f.zip
Fix Tasks
-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 }