Delete productUser record when products record is deleted

This commit is contained in:
Lance Edgar 2022-08-21 00:11:24 -05:00
parent 2b80fd6a6b
commit c2723de467

View file

@ -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.
"""))