This commit is contained in:
parent
fd5a2f6794
commit
f533ca0743
@ -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')
|
||||||
|
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user