Django rest framework serializer require all or none

前端 未结 0 667
小鲜肉
小鲜肉 2020-11-22 06:19

Is there a way to make a list of fields be an all or none required?

Maybe something like this where if any of fields \'A\' to \'D\' is included in data all of them sh

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