Re: [sqlalchemy] Re: Deleting from relationship

2015-02-23 Thread Asad Dhamani
to investigate one of the approaches at https://bitbucket.org/zzzeek/sqlalchemy/wiki/UsageRecipes/UniqueObject. Hope that helps, Simon On Sun, Feb 22, 2015 at 9:27 PM, Asad Dhamani dhama...@gmail.com javascript: wrote: I looked at my code some more, and found a now obvious mistake

[sqlalchemy] Deleting from relationship

2015-02-22 Thread Asad Dhamani
I have a many-to-many relationship in my models. This is what they look like: class Post(db.Model): __tablename__ = 'Posts' id = db.Column(db.Integer, primary_key=True) tags_relationship = db.relationship('Tag', secondary=tags, backref=db. backref('posts', lazy='dynamic')) tags =

[sqlalchemy] Re: Deleting from relationship

2015-02-22 Thread Asad Dhamani
the tags. On Monday, February 23, 2015 at 1:46:07 AM UTC+5:30, Asad Dhamani wrote: I have a many-to-many relationship in my models. This is what they look like: class Post(db.Model): __tablename__ = 'Posts' id = db.Column(db.Integer, primary_key=True) tags_relationship