We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db6f436 commit 3d48e9fCopy full SHA for 3d48e9f
1 file changed
api/models.py
@@ -188,6 +188,8 @@ def build(self):
188
return
189
190
def destroy(self, *args, **kwargs):
191
+ for app in self.app_set.all():
192
+ app.destroy()
193
node_tasks = [tasks.destroy_node.si(n) for n in self.node_set.all()]
194
layer_tasks = [tasks.destroy_layer.si(l) for l in self.layer_set.all()]
195
group(node_tasks).apply_async().join()
0 commit comments