Django Rest Framework - How to use “UniqueTogetherValidator” if one of the fields is provided as a URL variable

前端 未结 0 1851
时光取名叫无心
时光取名叫无心 2021-01-04 12:38

Hello I have a model with a unique_together constraint but the serializer cant validate it because one of the fields is being passed as a variable in the URL:

How can

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