summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-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 6fc27a8edd..ce3c90aa77 100644
--- a/django/utils/deprecation.py
+++ b/django/utils/deprecation.py
@@ -119,6 +119,9 @@ class CallableBool:
def __or__(self, other):
return bool(self.value or other)
+ def __hash__(self):
+ return hash(self.value)
+
CallableFalse = CallableBool(False)
CallableTrue = CallableBool(True)