home · contact · privacy
On removal of Conditions and Processes, also delete their VersionedAttributes.
[plomtask] / plomtask / processes.py
index e67b13414e26d40a87e77545ce57d238bc050028..0a9b95b3f5faf89fd5a4a9a0991c7bb9a70ca9c5 100644 (file)
@@ -177,6 +177,9 @@ class Process(BaseModel[int], ConditionsRelations):
         db_conn.delete_where('process_disables', 'process', self.id_)
         for step in self.explicit_steps:
             step.remove(db_conn)
+        db_conn.delete_where('process_titles', 'parent', self.id_)
+        db_conn.delete_where('process_descriptions', 'parent', self.id_)
+        db_conn.delete_where('process_efforts', 'parent', self.id_)
         super().remove(db_conn)