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:
parent
8fc8c86717
commit
be0864fd6b
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue