diff --git a/mealapi/model/meal.py b/mealapi/model/meal.py index 14234e4..92dfd83 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', back_populates='meal', lazy='dynamic') + ingredients = db.relationship('Ingredient', back_populates='meal') diff --git a/mealapi/utils/error_handlers.py b/mealapi/utils/error_handlers.py index 77b247e..d3dd22f 100644 --- a/mealapi/utils/error_handlers.py +++ b/mealapi/utils/error_handlers.py @@ -15,4 +15,4 @@ def register_all_error_handlers(app): error_codes_to_override = [404, 403, 401, 405, 400, 409, 422, 500] for code in error_codes_to_override: - app.register_error_handler(code, get_standard_error_handler(code)) \ No newline at end of file + app.register_error_handler(code, get_standard_error_handler(code))