summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/deprecation.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/deprecation.py b/django/utils/deprecation.py
index 020f69b032..6fc27a8edd 100644
--- a/django/utils/deprecation.py
+++ b/django/utils/deprecation.py
@@ -116,6 +116,9 @@ class CallableBool:
def __ne__(self, other):
return self.value != other
+ def __or__(self, other):
+ return bool(self.value or other)
+
CallableFalse = CallableBool(False)
CallableTrue = CallableBool(True)