I\'m using SQLAlchemy 0.5rc, and I\'d like to add an automatic filter to a relation, so that every time it tries to fetch records for that relation, it ignores the \"remote\" on
but is there a way to use a string as primaryjoin instead?
You can use the following:
children = relationship("Children", primaryjoin="and_(Parent.id==Children.parent_id, Children.logically_deleted==False)"
This worked for me!