librelist archives

« back to archive

[Flask-SQLAlchemy] Many-to-Many add method

[Flask-SQLAlchemy] Many-to-Many add method

From:
Jack Pearkes
Date:
2012-04-03 @ 15:36
After being a bit confused and in need of a solid example, I'd just like to
bump this thread:

http://librelist.com/browser/flask/2011/11/12/sqlalchemy-add-method-for-many-to-many-relationship/

Matthieu is essentially asking for an example of how to add 'Tags' to a
'Page' in the Flask-SQLalchemy

docs<http://packages.python.org/Flask-SQLAlchemy/models.html#many-to-many-relationships>
.

I would've also found this extremely useful. Luckily some extensive
googling eventually led me to Mathieu's post.

Thank you!

Jack

Re: [flask] [Flask-SQLAlchemy] Many-to-Many add method

From:
Ron DuPlain
Date:
2012-04-03 @ 15:47
Hi Jack,

On Tue, Apr 3, 2012 at 11:36 AM, Jack Pearkes <jackpearkes@gmail.com> wrote:
> After being a bit confused and in need of a solid example, I'd just like to
> bump this
> 
thread: http://librelist.com/browser/flask/2011/11/12/sqlalchemy-add-method-for-many-to-many-relationship/
>
> Matthieu is essentially asking for an example of how to add 'Tags' to a
> 'Page' in the Flask-SQLalchemy docs.
>
> I would've also found this extremely useful. Luckily some extensive googling
> eventually led me to Mathieu's post.

I've added an issue to get this into the docs:
https://github.com/mitsuhiko/flask-sqlalchemy/issues/76

Thanks,

Ron