Django Book 翻译
菜单>:
TOC
返回
原文:
Queries involving related objects follow the same rules as queries involving normal value fields. When specifying the value for a query to match, you may use either an object instance itself or the primary key value for the object.
翻译:
包含关联对象的搜索和包含普通字段的搜索遵循相同的规则。当指定一个值去查询时,你可以使用那个对象的一个实例,也可以使用它的主键值。
备注:
译者: