How to add username to the filterset_fields in views Django Rest Framework where the user is the foreign key of the model?

前端 未结 0 390
轮回少年
轮回少年 2020-12-01 19:34

I have below model in my models.py which has the django User model as the foreign key and I want to add username into the filter

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