diff --git a/mealapi/model/meal.py b/mealapi/model/meal.py index 1f5ebe0..b2dfb24 100644 --- a/mealapi/model/meal.py +++ b/mealapi/model/meal.py @@ -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')