meal_homework/mealapi/schemas/mealschema.py
Torma Kristóf 388ec47078
All checks were successful
continuous-integration/drone/push Build is passing
fix imports+
2022-02-13 20:52:51 +01:00

14 lines
275 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