From 2c6734c079b756fa9f80f5743284530fa0540ed8 Mon Sep 17 00:00:00 2001 From: Michael Kaiser Date: Mon, 25 Mar 2024 15:44:20 +0100 Subject: [PATCH] adding cascade to relationship of Subject --- codeGrader/backend/db/Exercise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codeGrader/backend/db/Exercise.py b/codeGrader/backend/db/Exercise.py index f82c1a0..be449d3 100644 --- a/codeGrader/backend/db/Exercise.py +++ b/codeGrader/backend/db/Exercise.py @@ -74,7 +74,7 @@ class Exercise(Base): "Task", collection_class=ordering_list("name"), order_by="[Task.name]", - # cascade="all", + cascade="all", passive_deletes=True, lazy="subquery", join_depth=3,