14 lines
277 B
Python
14 lines
277 B
Python
#!/usr/bin/env python3
|
|
from .marshm import ma
|
|
from ..model import Meal
|
|
from .ingredientschema import IngredientSchema
|
|
|
|
|
|
class MealSchema(ma.ModelSchema):
|
|
|
|
# A list of author objects
|
|
authors = ma.Nested(IngredientSchema, many=True)
|
|
|
|
class Meta:
|
|
model = Meal
|