Remove cascade settings for Person._customers relationship

not real sure why i'd added that in the first place?
(cf. 0e630e9ff2)  but SQLAlchemy started issuing
a warning about it, so better do what they say...
This commit is contained in:
Lance Edgar 2020-01-01 06:19:58 -06:00
parent 8fc8c86717
commit be0864fd6b

View file

@ -328,7 +328,6 @@ Customer.person = association_proxy(
Person._customers = orm.relationship( Person._customers = orm.relationship(
CustomerPerson, back_populates='person', CustomerPerson, back_populates='person',
primaryjoin=CustomerPerson.person_uuid == Person.uuid, primaryjoin=CustomerPerson.person_uuid == Person.uuid,
cascade='all, delete-orphan',
viewonly=True) viewonly=True)
Person.customers = association_proxy('_customers', 'customer', Person.customers = association_proxy('_customers', 'customer',