Re: [sqlalchemy] contains_eager does not load relation data if related model appears twice in query

2015-05-25 Thread Alex S
Thank you very much for your work, Mike. -- 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

[sqlalchemy] contains_eager does not load relation data if related model appears twice in query

2015-05-23 Thread Alex S
Hi everyone! I've found that contains_eager() does not load relation objects from query in case when related model appears twice in query. The working code with example models and steps to reproduce is listed in the attached file, I'll briefly describe the issue here. There are four models: