UniqueValidator in drf

后端 未结 0 1645
不知归路
不知归路 2021-02-03 22:42

my model has a field:

name = models.CharField(max_length=255, blank=True, null=True)

in serializer, I am trying to raise a unique validation erro

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