Delete productUser
record when products
record is deleted
This commit is contained in:
parent
2b80fd6a6b
commit
c2723de467
1 changed files with 1 additions and 0 deletions
|
@ -757,6 +757,7 @@ class ProductUser(Base):
|
|||
backref=orm.backref(
|
||||
'user_info',
|
||||
uselist=False,
|
||||
cascade='all, delete-orphan',
|
||||
doc="""
|
||||
Reference to the :class:`ProductUser` record for this product, if any.
|
||||
"""))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue