阅读背景:

unique=True在传递自定义字典时不工作?

来源:互联网 

So right now I'm editting the Querydict that the modelform gives to the view to make the submission in one field all lowercase and have no spaces. but then when I construct and pass that dictionary back to the Modelform to be validated/saved it doesn't give me an error if the same thing has been entered more than once. It seems like unique=True should work for all submissions that are in the correct format not just ones from request.POST. Any help/insight on the issue would be awesome.So right now I'm editting the Querydict that th




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

分享到: