So, how about a scenario that we define our serializer class to access all fields in the model, but we choose which fields to be serialized when we instantiate the serializer class?
Know more reading the full article here!
原文链接:How to dynamically serialize model fields in Django REST Framework
© 版权声明
THE END
暂无评论内容