Django Book 翻译
菜单>:
TOC
返回
原文:
Usually, though, youll need to select only a subset of the complete set of objects. To create such a subset, you refine the initial ``QuerySet`` , adding filter conditions. Youll usually do this using the ``filter()`` and/or ``exclude()`` methods:
翻译:
但是通常情况下,只需要从所有对象中请求一个子集,这就需要你细化一下刚才的 ``QuerySet`` ,加一些过滤条件。用 ``filter()`` 和 ``exclude()`` 方法可以实现这样的功能:
备注:
译者: