阅读背景:

在Django Rest框架中重写unique_together错误消息。

来源:互联网 

I am trying to use unique_together for two fields (email and type) for Meta for a model, but the the error message is always "The fields email, type must make a unique set." What is the best way to override the unique_together error message?I am trying to use unique_together for two fiel




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

分享到: