meal_homework/mealapi/schemas/mealschema.py
Torma Kristóf c20b5f7c98
All checks were successful
continuous-integration/drone/push Build is passing
lowecase
2022-02-13 20:39:14 +01:00

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