Django Book 翻译
菜单>:
TOC
返回
原文:
Lookup functions can mix the use of ``Q`` objects and keyword arguments. All arguments provided to a lookup function (be they keyword arguments or ``Q`` objects) are ANDed together. However, if a ``Q`` object is provided, it must precede the definition of any keyword arguments. For example, the following:
翻译:
查询函数可以混合使用``Q``对象和关键字作参数。所有的参数作为查询函数的条件(无论他们是关键字参数还是``Q``对象)进行AND运算。然而,如果将一个``Q``对象作为条件,则它必须放在所有关键字参数定义之前。就像下面这样:
备注:
译者: