entities/wfobjs.py
changeset 5557 1a534c596bff
parent 5556 9ab2b4c74baf
child 6904 cf869016a823
--- a/entities/wfobjs.py	Thu May 20 20:47:55 2010 +0200
+++ b/entities/wfobjs.py	Thu May 20 20:50:00 2010 +0200
@@ -173,7 +173,7 @@
                 {'os': todelstate.eid, 'ns': replacement.eid})
         execute('SET X to_state NS WHERE X to_state OS, OS eid %(os)s, NS eid %(ns)s',
                 {'os': todelstate.eid, 'ns': replacement.eid})
-        todelstate.delete()
+        todelstate.cw_delete()
 
 
 class BaseTransition(AnyEntity):