[sqlalchemy] Re: migrating a child object from one parent to another

2020-09-24 Thread Jonathan Vanasco
I totally missed the `AcmeAccountKey.is_active.is_(True)` on the relationship. I set it as viewonly and crisis solved. -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and

[sqlalchemy] migrating a child object from one parent to another

2020-09-24 Thread Jonathan Vanasco
I am having an issue with migrating an instance child relationship from one object to another. I have the following two classes: class AcmeAccount(Base): __tablename__ = "acme_account" id = sa.Column(sa.Integer, primary_key=True) account_url =