Add cascade delete to payments relationship
This commit is contained in:
parent
884d5afd7d
commit
a6b527a6b2
1 changed files with 1 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ class User(RBase, Base):
|
|||
lazy="dynamic",
|
||||
back_populates="user",
|
||||
order_by="desc(Payment.created_timestamp)",
|
||||
cascade="save-update, merge, delete",
|
||||
)
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue