Django Book 翻译
菜单>:
TOC
返回
原文:
To define a many-to-one relationship, use ``ForeignKey`` . You use it just like any other ``Field`` type: by including it as a class attribute of your model.
翻译:
用 ``ForeignKey`` 来定义多对一的关系。用法和其他的 ``Field`` 是一样的,把它放到模型中类的属性定义中就行了。
备注:
译者: