use back_populates instead of backref
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8a482b83e9
commit
cc8164ef4c
@ -12,4 +12,4 @@ class Meal(db.Model):
|
||||
spicy = db.Column(db.Boolean, nullable=True, default=False)
|
||||
vegan = db.Column(db.Boolean, nullable=True, default=False)
|
||||
glutenfree = db.Column(db.Boolean, nullable=True, default=False)
|
||||
ingredients = db.relationship('Ingredient', backref='Meal', lazy='dynamic')
|
||||
ingredients = db.relationship('Ingredient', back_populates='Meal', lazy='dynamic')
|
||||
|
Loading…
Reference in New Issue
Block a user