Django Book 翻译
菜单>:
TOC
返回
原文:
Theres one more shortcut being demonstrated here. Since forms derived from models are often used to save new instances of the model to the database, the form class created by ``form_for_model`` includes a convenient ``save()`` method. This deals with the common case; youre welcome to ignore it if you want to do something a bit more involved with the submitted data.
翻译:
还有一个快捷的方法。因为从模型而来的表单经常被用来把新的模型的实例保存到数据库,从 ``form_for_model`` 而来的表单对象包含一个 ``save()`` 方法。一般情况下够用了;你想对提交的数据作进一步的处理的话,无视它就好了。
备注:
译者: