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

This commit is contained in:
Torma Kristóf 2022-02-13 21:32:19 +01:00
parent 65580173d0
commit fd5a2f6794
2 changed files with 2 additions and 2 deletions

View File

@ -7,4 +7,4 @@ class Ingredient(db.Model):
id = db.Column(db.Integer, primary_key=True) id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(255), nullable=False, unique=True) name = db.Column(db.String(255), nullable=False, unique=True)
meal_id = db.Column(db.Integer, db.ForeignKey('Meal.id')) meal_id = db.Column(db.Integer, db.ForeignKey('Meal.id'))
meal = db.relationship('Meal', back_populates='Ingredient', lazy='dynamic') meal = db.relationship('Meal', back_populates='ingredients', lazy='dynamic')

View File

@ -12,4 +12,4 @@ class Meal(db.Model):
spicy = db.Column(db.Boolean, nullable=True, default=False) spicy = db.Column(db.Boolean, nullable=True, default=False)
vegan = 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) glutenfree = db.Column(db.Boolean, nullable=True, default=False)
ingredients = db.relationship('Ingredient', back_populates='Meal', lazy='dynamic') ingredients = db.relationship('Ingredient', back_populates='meal', lazy='dynamic')