[sqlalchemy] Re: query for many-to-many relation

2016-12-19 Thread Michal Nowikowski
Hello, I meant something else. I assume that some Keywords were not assigned to any BlogPost. And now, without any modification to model, I would like to get a list of Keywords that are assigned to some BlogPosts. If it was one to many relation then I would just do: list_of_used_keywords =

[sqlalchemy] Re: query for many-to-many relation

2016-12-19 Thread Jonathan Vanasco
On Monday, December 19, 2016 at 11:26:31 AM UTC-5, Michal Nowikowski wrote: > > Imagine that we have many Keywords but not all of them are used (not all > are associated to some BlogPosts). > Now, how to get list of Keywords that are used anywhere (i.e. these that > are associated to some