Re: [sqlalchemy] Automatically create secondary tables for many to many relationship?

2013-09-22 Thread Michael Bayer
On Sep 22, 2013, at 10:11 PM, Jeff Peck wrote: >> >> And replace it with something like this: >>class Keyword(Base): >> snip (same as before) >> >>class Foo(Base): >> snip >>keywords = generate_many_to_many_for_me('Foo', 'Keyword') > >>> the

RE: [sqlalchemy] Automatically create secondary tables for many to many relationship?

2013-09-22 Thread Jeff Peck
> > And replace it with something like this: > class Keyword(Base): > snip (same as before) > > class Foo(Base): > snip > keywords = generate_many_to_many_for_me('Foo', 'Keyword') >> there's a recipe for this at this blog post, you might

Re: [sqlalchemy] Automatically create secondary tables for many to many relationship?

2013-09-22 Thread Michael Bayer
On Sep 22, 2013, at 5:24 PM, jpeck wrote: > > And replace it with something like this: > class Keyword(Base): > snip (same as before) > > class Foo(Base): > snip > keywords = generate_many_to_many_for_me('Foo', 'Keyword') there's a rec