Re: [sqlalchemy] Missing synonyms with multi-inheritance

2018-10-19 Thread Mike Bayer
it's a recent regression as of 1.2.12: https://bitbucket.org/zzzeek/sqlalchemy/issues/4350/synonym-single-inheritance-mixins will fix On Fri, Oct 19, 2018 at 4:38 PM Mike Bayer wrote: > > On Fri, Oct 19, 2018 at 2:30 PM Derek Lambert > wrote: > > > > I'm replying to my original post since

Re: [sqlalchemy] Missing synonyms with multi-inheritance

2018-10-19 Thread Mike Bayer
On Fri, Oct 19, 2018 at 2:30 PM Derek Lambert wrote: > > I'm replying to my original post since it's related. > > I'm still seeing missing synonyms on child classes when they are defined in a > mixin imported on a parent. > > > import sqlalchemy as sa > from sqlalchemy import orm > from

Re: [sqlalchemy] Missing synonyms with multi-inheritance

2018-10-19 Thread Derek Lambert
I'm replying to my original post since it's related. I'm still seeing missing synonyms on child classes when they are defined in a mixin imported on a parent. import sqlalchemy as sa from sqlalchemy import orm from sqlalchemy.ext.declarative import declarative_base, declared_attr Base =

[sqlalchemy] Using before_update and before_insert events listeners with PostgreSQL upserts

2018-10-19 Thread Chris Johnson
Python Version: 3.6.6 SQLAlchemy version: 1.2.12 PostgreSQL version: 10.5 This is my fist time using PGSQL over MySQL or SQLite and my first project using SQLAlchemy over SQLite or the Django ORM. I'm also not very good at programming in general so please forgive the simple questions. I have a