diff options
author | Hannes Ljungberg <hannes@5monkeys.se> | 2020-03-20 23:08:32 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-03-25 10:16:30 +0100 |
commit | f3da09df0f4147223ab76a00a841586ccf11005d (patch) | |
tree | e36e8116a5b7abaa453791545a65e3febe3adc87 /django/db/backends/sqlite3/base.py | |
parent | 39e1c88de67ea2035d5ad89cfe00bcd892c0d163 (diff) | |
download | django-f3da09df0f4147223ab76a00a841586ccf11005d.tar.gz |
Fixed #31396 -- Added binary XOR operator to F expressions.
Diffstat (limited to 'django/db/backends/sqlite3/base.py')
-rw-r--r-- | django/db/backends/sqlite3/base.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 7b3f90a2fd..fcc9d31b37 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -218,6 +218,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): conn.create_function('ASIN', 1, none_guard(math.asin)) conn.create_function('ATAN', 1, none_guard(math.atan)) conn.create_function('ATAN2', 2, none_guard(math.atan2)) + conn.create_function('BITXOR', 2, none_guard(operator.xor)) conn.create_function('CEILING', 1, none_guard(math.ceil)) conn.create_function('COS', 1, none_guard(math.cos)) conn.create_function('COT', 1, none_guard(lambda x: 1 / math.tan(x))) |