use new api
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-02-13 20:56:17 +01:00
parent 388ec47078
commit caa84189ea
2 changed files with 4 additions and 2 deletions

View File

@@ -3,7 +3,8 @@ from .marshm import ma
from model import Ingredient
class IngredientSchema(ma.ModelSchema):
class IngredientSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = Ingredient
load_instance = True