Django Book 翻译
菜单>:
TOC
返回
原文:
If a model has a ``ForeignKey`` , instances of the foreign key model will have access to a ``Manager`` that returns all instances of the first model. By default, this ``Manager`` is named ``FOO_set`` , where ``FOO`` is the source model name, lowercased. This ``Manager`` returns ``QuerySets`` , which can be filtered and manipulated as described in the Retrieving Objects section.
翻译:
如果一个源模型含有一个外键,那么它的外键模型的实例,可以利用"Manager"返回这个源模型的所有实例.默认的这个"Manager"叫做"FOO_set",这个"FOO"是源模型的名字,小写字母,这个"Manager"将返回"QuerySets",对这个QuerySets进行过滤和操作,就像在检索对象章节中介绍的.
备注:
译者: