Leaklens

django__django-14915

ModelChoiceIteratorValue is not hashable.

Verdict: the fix is stated in the issue (Tier A).

Agreed, we could make ModelChoiceIteratorValue hashable by adding: def __hash__(self): return hash(self.value)

The text states the fix: “Agreed, we could make ModelChoiceIteratorValue hashable by adding: def __hash__(self): return hash(self.value)”

All SWE-bench Verified tasks · more django/django tasks · How the check works