This commit is contained in:
Bernhard Radermacher (hakisto)
2025-08-31 18:42:46 +02:00
parent bd510016de
commit eb1d8d793c
6 changed files with 356 additions and 10 deletions

View File

@@ -18,8 +18,7 @@ def bidirectional_relationship(cls, foreign_table_cls):
column_name,
relationship(cls,
back_populates=foreign_table_cls.__tablename__,
cascade="all, delete-orphan",
collection_class=set,
cascade="all, delete-orphan"
)
)