[sqlalchemy] migrating from backref to back_populates -- advice?

2015-09-16 Thread Jonathan Vanasco
I'm about to migrate about 70 relationships from backref to back_populates so the model reads cleaner/better documented.. Most are straightwordard, but a handful are more complex -- order_by or uselist are on the backref, or there may be a handful of args or primaryjoin on the relationship.

Re: [sqlalchemy] migrating from backref to back_populates -- advice?

2015-09-16 Thread Jonathan Vanasco
On Wednesday, September 16, 2015 at 4:14:35 PM UTC-4, Michael Bayer wrote: > > maybe you can run through all the mappings with a script and produce a > textfile indicating the settings for all the relationships. then you can > verify that the back_populates code change produces the same

Re: [sqlalchemy] migrating from backref to back_populates -- advice?

2015-09-16 Thread Mike Bayer
maybe you can run through all the mappings with a script and produce a textfile indicating the settings for all the relationships. then you can verify that the back_populates code change produces the same thing. On 9/16/15 3:47 PM, Jonathan Vanasco wrote: I'm about to migrate about 70