web/views/editcontroller.py
changeset 5557 1a534c596bff
parent 5556 9ab2b4c74baf
child 5569 cb14af012a96
--- a/web/views/editcontroller.py	Thu May 20 20:47:55 2010 +0200
+++ b/web/views/editcontroller.py	Thu May 20 20:50:00 2010 +0200
@@ -305,7 +305,7 @@
             entity = self._cw.entity_from_eid(eid, etype)
             path, params = entity.cw_adapt_to('IEditControl').after_deletion_path()
             redirect_info.add( (path, tuple(params.iteritems())) )
-            entity.delete()
+            entity.cw_delete()
         if len(redirect_info) > 1:
             # In the face of ambiguity, refuse the temptation to guess.
             self._after_deletion_path = 'view', ()