我正在使用Marshmallow的嵌套序列化程序并得到错误“KeyError:u'manager'”。在
以下是我的序列化程序:
class ShiftSerializer(Schema):
agent = fields.String()
date = fields.String()
end = fields.String()
status = fields.String()
class KPIShiftSerializer(Schema):
interval = fields.DateTime()
incoming = fields.Integer()
duration = fields.Decimal()
shifts_future = fields.Nested(ShiftSerializer, many=True)
shifts_current = fields.Nested(ShiftSerializer, many=True)
shifts_ending = fields.Nested(ShiftSerializer, many=True)
我的模特们:
^{pr2}$
目前没有回答
相关问题 更多 >
编程相关推荐