Django Book 翻译
菜单>:
TOC
返回
原文:
Note that theres no need to specify the keyword argument of the model that defines the relationship. In the preceding example, we dont pass the parameter ``blog`` to ``create()`` . Django figures out that the new ``Entry`` objects ``blog`` field should be set to ``b`` .
翻译:
注意到,这并没有必要在定义了外键关系的模型中定义关键字参数.在之前的例子中,我们没有传递"blog"参数给"create()".Django会解决这个新建的"Entry"对象的blog字段值设置为b.
备注:
译者: