阅读背景:

验证Django模型对象的正确方法?

来源:互联网 

I'm still trying to understand the correct way to validate a Django model object using a custom validator at the model level. I know that validation is usually done within a form or model form. However, I want to ensure the integrity of my data at the model level if I'm interacting with it via the ORM in the Python shell. Here's my current approach:I'm still trying to understand the correct way




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

分享到: