secundary
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2022-02-13 21:00:35 +01:00
parent caa84189ea
commit 26428e8cb8
2 changed files with 2 additions and 2 deletions

View File

@ -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')

View File

@ -13,4 +13,4 @@ class Meal(db.Model):
spicy = db.Column(db.Boolean, nullable=False, default=False)
vegan = db.Column(db.Boolean, nullable=False, default=False)
glutenfree = db.Column(db.Boolean, nullable=False, default=False)
ingredients = db.relationship('Ingredient', secondary=MealIngredient, back_populates='Meal')
ingredients = db.relationship('Ingredient', secondary=MealIngredient.__tablename__, back_populates='Meal')