You can put whatever expressions you want in relationships provided they provide enough information to map them the way relationship expects, the examples at http://docs2.sqlalchemy.org/en/latest/orm/join_conditions.html#creating-custom-foreign-conditions should get you started.
On Friday, May 20, 2016, Andrew Pashkin <andrew.pash...@gmx.co.uk> wrote: > Hello, everyone, there is a way to have calculated scalar fields, using > column_property and hybrid_property. But is there a way, to create > calculated foreign keys and calculated relationship with SQLAlchemy? > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sqlalchemy+unsubscr...@googlegroups.com > <javascript:_e(%7B%7D,'cvml','sqlalchemy%2bunsubscr...@googlegroups.com');> > . > To post to this group, send email to sqlalchemy@googlegroups.com > <javascript:_e(%7B%7D,'cvml','sqlalchemy@googlegroups.com');>. > Visit this group at https://groups.google.com/group/sqlalchemy. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.