﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27309	Add CallableBool.__hash__()	Reto Aebersold	nobody	"As [https://github.com/django/django/blob/b7fb608142a0be568bc5dce952de5e6aefc2488c/django/utils/deprecation.py#L87 CallableBool] has no hash method, membership test operations for sets do not work:

{{{
from django.utils.deprecation import CallableTrue
assert CallableTrue in {True}

TypeError: unhashable type: 'CallableBool'
}}}

Adding a hash method solves this problem:

{{{
def __hash__(self):
    return hash(self.value)
}}}"	Bug	closed	Utilities	1.10	Normal	fixed			Ready for checkin	1	0	0	0	0	0
