Re: [sqlalchemy] Re: Custom (more restrictive) primaryjoin and deletion cascades

2017-04-19 Thread mike bayer
On 04/19/2017 10:36 AM, Adrian wrote: Here's a MVCE-style example showing the problem I have: | fromsqlalchemy import* fromsqlalchemy.ext.declarative importdeclarative_base fromsqlalchemy.orm import* Base=declarative_base() classType(Base): __tablename__ ='types' id =Column(Integer,

[sqlalchemy] Re: Custom (more restrictive) primaryjoin and deletion cascades

2017-04-19 Thread Adrian
Here's a MVCE-style example showing the problem I have: from sqlalchemy import * from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import * Base = declarative_base() class Type(Base): __tablename__ = 'types' id = Column(Integer, primary_key=True) def __rep