From f3da09df0f4147223ab76a00a841586ccf11005d Mon Sep 17 00:00:00 2001 From: Hannes Ljungberg Date: Fri, 20 Mar 2020 23:08:32 +0100 Subject: Fixed #31396 -- Added binary XOR operator to F expressions. --- docs/topics/db/queries.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'docs/topics') diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index 79f38084fa..415d229b02 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -656,10 +656,18 @@ that were modified more than 3 days after they were published:: >>> Entry.objects.filter(mod_date__gt=F('pub_date') + timedelta(days=3)) The ``F()`` objects support bitwise operations by ``.bitand()``, ``.bitor()``, -``.bitrightshift()``, and ``.bitleftshift()``. For example:: +``.bitxor()``, ``.bitrightshift()``, and ``.bitleftshift()``. For example:: >>> F('somefield').bitand(16) +.. admonition:: Oracle + + Oracle doesn't support bitwise XOR operation. + +.. versionchanged:: 3.1 + + Support for ``.bitxor()`` was added. + The ``pk`` lookup shortcut -------------------------- -- cgit v1.3