瀏覽代碼

Refs #33319 -- Added note about commutation of QuerySet's | operator.

Ömer Faruk Abacı 3 年之前
父節點
當前提交
f04b44bad4
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      docs/ref/models/querysets.txt

+ 3 - 0
docs/ref/models/querysets.txt

@@ -1898,6 +1898,9 @@ SQL equivalent:
 
 
     SELECT ... WHERE x=1 OR y=2
     SELECT ... WHERE x=1 OR y=2
 
 
+``|`` is not a commutative operation, as different (though equivalent) queries
+may be generated.
+
 Methods that do not return ``QuerySet``\s
 Methods that do not return ``QuerySet``\s
 -----------------------------------------
 -----------------------------------------