[sqlalchemy] Help requested debugging a tricky query with join-dependent hybrid property

2014-01-15 Thread Matt Schmidt
So here's a simplified version of the models I have: http://pastie.org/private/smqzkvz4zj46skfmipruw Python==3.3 SQLAlchemy==0.9.1 psycopg2==2.5.2 Postgresql 9.2 Running the following query, session.query(Training).filter(Training.start_date '2013-11-01') Gives me the following SQL: SELECT

Re: [sqlalchemy] Help requested debugging a tricky query with join-dependent hybrid property

2014-01-15 Thread Michael Bayer
On Jan 15, 2014, at 12:58 PM, Matt Schmidt slo...@gmail.com wrote: So here's a simplified version of the models I have: http://pastie.org/private/smqzkvz4zj46skfmipruw Python==3.3 SQLAlchemy==0.9.1 psycopg2==2.5.2 Postgresql 9.2 Running the following query,

Re: [sqlalchemy] Help requested debugging a tricky query with join-dependent hybrid property

2014-01-15 Thread Matt Schmidt
Very good! Thank you! On Wednesday, January 15, 2014 1:17:56 PM UTC-5, Michael Bayer wrote: On Jan 15, 2014, at 12:58 PM, Matt Schmidt slo...@gmail.com javascript: wrote: So here's a simplified version of the models I have: http://pastie.org/private/smqzkvz4zj46skfmipruw Python==3.3