entities/wfobjs.py
branchstable
changeset 4002 4edff8bce44b
parent 3999 5dd6ffc2ccae
child 4012 f6c65e04704c
child 4212 ab6573088b4a
--- a/entities/wfobjs.py	Fri Dec 04 19:45:58 2009 +0100
+++ b/entities/wfobjs.py	Fri Dec 04 19:53:50 2009 +0100
@@ -164,6 +164,7 @@
                 {'os': todelstate.eid, 'ns': newstate.eid}, 's')
         execute('SET X to_state NS WHERE X to_state OS, OS eid %(os)s, NS eid %(ns)s',
                 {'os': todelstate.eid, 'ns': newstate.eid}, 's')
+        todelstate.delete()
 
 
 class BaseTransition(AnyEntity):