How to restrict related object fields representation in Django REST framework serializer

后端 未结 0 443
慢半拍i
慢半拍i 2020-11-29 06:42

https://i.stack.imgur.com/Bkc3q.png

Without "depth=1" in SomeDependentModelSerializer I get data only including self model id and related_user id,

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