Re: [sqlalchemy] Hybrid property "can't set attribute"

2019-12-19 Thread Mike Bayer
here's the migration note that includes this information: https://docs.sqlalchemy.org/en/13/changelog/migration_12.html#hybrid-attributes-support-reuse-among-subclasses-redefinition-of-getter On Thu, Dec 19, 2019, at 7:18 PM, Mike Bayer wrote: > hiya - > > going to say right off this is the

Re: [sqlalchemy] Hybrid property "can't set attribute"

2019-12-19 Thread Mike Bayer
hiya - going to say right off this is the naming issue, there's an unfortunately stalled PR to make sure the documentation emphasizes this at https://github.com/sqlalchemy/sqlalchemy/pull/4970 . basically the same note as you see in

[sqlalchemy] Hybrid property "can't set attribute"

2019-12-19 Thread YKdvd
We have a "Users" model with this, which was a hybrid property to wrap the "email" column temporarily. The database column (MySQL 5.7) is "email", but defined by ORM as "_email", with an "email" hybrid property to access and set: _email = Column(u'email', String(255)) ... @hybrid_property