How to serialize field dynamically if I don't know in advance which serializer will be chosen?

后端 未结 0 935
暗喜
暗喜 2020-12-22 18:35

I have a simple serializer:

class BoxSerializer(Serializer):
    modelName = serializers.CharField(required=True)
    body = ???

And I want t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题