Django Book 翻译
菜单>:
TOC
返回
原文:
Our ``Publisher`` model class says that a publisher has a name, address, city, state_province, country, and website. Duplicating this information in a form definition would break the DRY rule. Instead, we can use a useful shortcut: ``form_for_model()`` :
翻译:
我们的出版商模型拥有一个名字,地址,城市,州(省),国家和网站。在form中重复这个信息无疑违反了DRY原则。我们可以使用一个捷径:form_for_model():
备注:
译者: