From bb8435f5db6ed5caa33346387e925c8287f2c683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20Abac=C4=B1?= Date: Wed, 8 Dec 2021 10:19:07 +0100 Subject: [PATCH] [4.0.x] Refs #33319 -- Added note about commutation of QuerySet's | operator. Backport of f04b44bad40369ec2df74b16adb4d3f09350e4b2 from main --- docs/ref/models/querysets.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 484d8b4ff7..4680cee1e6 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -1911,6 +1911,9 @@ SQL equivalent: 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 -----------------------------------------