Django Book 翻译
菜单>:
TOC
返回
原文:
``Q`` objects can be combined using the ``&`` and ``|`` operators. When an operator is used on two ``Q`` objects, it yields a new ``Q`` object. For example, this statement yields a single ``Q`` object that represents the OR of two ``"question__startswith"`` queries:
翻译:
``Q`` 对象可以用运算符 ``&`` 和 ``|`` 来联合。当一个运算符连接两个 ``Q`` 对象时,就产生了一个新的 ``Q`` 对象。例如,这句生成一个单一的 ``Q`` 对象。相当于两个``"question__startswith"``条件的OR:
备注:
译者: