This commit is contained in:
@@ -8,4 +8,4 @@ class Ingredient(db.Model):
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
name = db.Column(db.String, nullable=False, unique=True)
|
||||
value = db.Column(db.String, nullable=False)
|
||||
items = db.relationship('Meal', secondary=MealIngredient, back_populates='Ingredient')
|
||||
items = db.relationship('Meal', secondary=MealIngredient.__tablename__, back_populates='Ingredient')
|
||||
|
||||
Reference in New Issue
Block a user