Re: [sqlalchemy] Warning about using backref with viewonly - how to make a two-way read-only relation?

2020-03-18 Thread Mike Bayer
On Wed, Mar 18, 2020, at 11:42 AM, Mike Bayer wrote: > > > On Wed, Mar 18, 2020, at 11:22 AM, Tony Hignett wrote: >> Hi, >> >> I'm trying to upgrade from 1.2.2 to 1.3.15 and a number of our relations >> have started generating these warnings: >> ``` >> SAWarning: Setting backref /

Re: [sqlalchemy] Warning about using backref with viewonly - how to make a two-way read-only relation?

2020-03-18 Thread Mike Bayer
On Wed, Mar 18, 2020, at 11:22 AM, Tony Hignett wrote: > Hi, > > I'm trying to upgrade from 1.2.2 to 1.3.15 and a number of our relations have > started generating these warnings: > ``` > SAWarning: Setting backref / back_populates on relationship to > refer to viewonly relationship will be

[sqlalchemy] Warning about using backref with viewonly - how to make a two-way read-only relation?

2020-03-18 Thread Tony Hignett
Hi, I'm trying to upgrade from 1.2.2 to 1.3.15 and a number of our relations have started generating these warnings: ``` SAWarning: Setting backref / back_populates on relationship to refer to viewonly relationship will be deprecated in SQLAlchemy 1.4, and will be disallowed in a future