[sqlalchemy] Re: Adding expressions to a Query

2010-12-05 Thread Jurie-Jan Botha
one option would be to add the expression to your model as a column_property This is unfortunately not an option as this extra column compiles it's value from the values of more than one model. -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To

[sqlalchemy] Re: Adding expressions to a Query

2010-12-05 Thread Jurie-Jan Botha
I found that it's really as easy as using query.add_columns(). My problem was caused by my not reading the documentation properly and trying to use a list in the add_columns() method instead of just positional arguments. one option would be to add the expression to your model as a