diff --git a/corepos/db/office_op/model.py b/corepos/db/office_op/model.py index c913ae0..107da66 100644 --- a/corepos/db/office_op/model.py +++ b/corepos/db/office_op/model.py @@ -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. """))