阅读背景:

如何在django rest框架中验证模型?

来源:互联网 

I have a model that is essentially a single table with four lookup tables. One of the lookup tables is to specify a type. Based on the type (of which there are four), the requirements on the fields change. For example if the type is 'Survey' the field number_of_unique_contacts is required, but not for any other type.I have a model that is essentially a single tab




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: