How to dynamically serialize model fields in Django REST Framework

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
喜欢就支持一下吧
点赞6 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容