[migration] Commit once for all
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 31 Mar 2017 11:00:42 +0200
changeset 2569 801dd5c8512d
parent 2568 fb33a8aeb23a
child 2570 1269e5d31ecd
[migration] Commit once for all add avoid a lot of confirmation.
cubicweb_seda/migration/0.9.1_Any.py
--- a/cubicweb_seda/migration/0.9.1_Any.py	Fri Mar 31 09:57:49 2017 +0200
+++ b/cubicweb_seda/migration/0.9.1_Any.py	Fri Mar 31 11:00:42 2017 +0200
@@ -4,7 +4,7 @@
     container = max(c.eid for c in e.container)
     e.cw_set(container=None)
     e.cw_set(container=container)
-    commit()
+commit()
 
 sync_schema_props_perms('container')