This commit is contained in:
parent
ac459031c7
commit
88bbeded0f
@ -7,7 +7,7 @@ from .ingredientschema import IngredientSchema
|
|||||||
class MealSchema(ma.SQLAlchemyAutoSchema):
|
class MealSchema(ma.SQLAlchemyAutoSchema):
|
||||||
|
|
||||||
# A list of author objects
|
# A list of author objects
|
||||||
authors = ma.Nested(IngredientSchema, many=True)
|
ingredients = ma.Nested(IngredientSchema, many=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Meal
|
model = Meal
|
||||||
|
Loading…
Reference in New Issue
Block a user