meal_homework/mealapi/schemas/ingredientschema.py

11 lines
199 B
Python
Raw Permalink Normal View History

2022-02-13 20:38:02 +01:00
#!/usr/bin/env python3
from .marshm import ma
2022-02-13 20:52:51 +01:00
from model import Ingredient
2022-02-13 20:38:02 +01:00
2022-02-13 20:56:17 +01:00
class IngredientSchema(ma.SQLAlchemyAutoSchema):
2022-02-13 20:38:02 +01:00
class Meta:
model = Ingredient
2022-02-13 20:56:17 +01:00
load_instance = True