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