Django Book 翻译
菜单>:
TOC
返回
原文:
These three ``QuerySets`` are separate. The first is a base ``QuerySet`` containing all entries that contain a headline starting with What. The second is a subset of the first, with an additional criterion that excludes records whose ``pub_date`` is greater than now. The third is a subset of the first, with an additional criterion that selects only the records whose ``pub_date`` is greater than now. The initial ``QuerySet`` (``q1`` ) is unaffected by the refinement process.
翻译:
这三个 ``QuerySet`` 是无关的。第一个基础查询集包含了所有标题以What开始的条目。第二个查询集是第一个的子集,只是过滤掉了 ``pub_date`` 比当前时间大的记录。第三个查询集也是第一个的子集,只保留 ``pub_date`` 比当前时间大的记录。初始的 ``QuerySet`` ( ``q1`` )是不受细化过程的影响。
备注:
译者: