do not use loader
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2022-02-13 21:34:23 +01:00
parent fd5a2f6794
commit f533ca0743
2 changed files with 2 additions and 2 deletions

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

View File

@ -15,4 +15,4 @@ def register_all_error_handlers(app):
error_codes_to_override = [404, 403, 401, 405, 400, 409, 422, 500] error_codes_to_override = [404, 403, 401, 405, 400, 409, 422, 500]
for code in error_codes_to_override: for code in error_codes_to_override:
app.register_error_handler(code, get_standard_error_handler(code)) app.register_error_handler(code, get_standard_error_handler(code))