From f533ca074326b4415ea9fb7c95a457ce159b631c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 13 Feb 2022 21:34:23 +0100 Subject: [PATCH] do not use loader --- mealapi/model/meal.py | 2 +- mealapi/utils/error_handlers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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))