Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

How to query data in many to many relationship in flask sql alchemy

class Restaurant(db.Model):
    ...

    dishes = db.relationship('Dish', secondary=restaurant_dish,
        backref=db.backref('restaurants'))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #query #data #relationship #flask #sql #alchemy
ADD COMMENT
Topic
Name
7+3 =