Torma Kristóf
88bbeded0f
All checks were successful
continuous-integration/drone/push Build is passing
15 lines
317 B
Python
15 lines
317 B
Python
#!/usr/bin/env python3
|
|
from .marshm import ma
|
|
from model import Meal
|
|
from .ingredientschema import IngredientSchema
|
|
|
|
|
|
class MealSchema(ma.SQLAlchemyAutoSchema):
|
|
|
|
# A list of author objects
|
|
ingredients = ma.Nested(IngredientSchema, many=True)
|
|
|
|
class Meta:
|
|
model = Meal
|
|
load_instance = True
|