How to pass slug as request.data to ModelViewSets of Django REST Framework

后端 未结 0 704
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-15 00:37

I have entered a slug in an URL and I want the entered slug as a request.data in ModelViewSets.

Specifically,

urls.py

> router = routers.DefaultR         


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