Skip to content

Commit

Permalink
adding cascade to relationship of Subject
Browse files Browse the repository at this point in the history
  • Loading branch information
ooemperor committed Mar 25, 2024
1 parent 74494f9 commit ab4a044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codeGrader/backend/db/Subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Subject(Base):
"Exercise",
collection_class=ordering_list("name"),
order_by="[Exercise.name]",
# cascade="all",
cascade="all",
passive_deletes=True,
lazy="subquery",
backref=backref("ExerciseSubject", lazy="joined")
Expand Down

0 comments on commit ab4a044

Please sign in to comment.