﻿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	Missing Hash function in CallableBool	Reto Aebersold	nobody	"As [https://github.com/django/django/blob/b7fb608142a0be568bc5dce952de5e6aefc2488c/django/utils/deprecation.py#L87 CallableBool] has no hash function, 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 function solves this problem:

{{{
def __hash__(self):
    return hash(self.value)
}}}"	Bug	new	Utilities	1.10	Normal				Unreviewed	0	0	0	0	0	0
