阅读背景:

Django设计模式 - 用于创建和更新模型的表单

来源:互联网 

Suppose I want to create and update a model. What fields are displayed and the type of validation depends on the action (create or update). But they still share a lot of the same validation and functality. Is there a clean way to have a ModelForm handle this (besides just if instance exists everywhere) or should I just create two different model forms?Suppose I want to create and update a model. Wh




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

分享到: