diff options
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/forms/models.py b/django/forms/models.py index 5dcf923c12..7effb202e3 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -1166,6 +1166,9 @@ class ModelChoiceIteratorValue: def __str__(self): return str(self.value) + def __hash__(self): + return hash(self.value) + def __eq__(self, other): if isinstance(other, ModelChoiceIteratorValue): other = other.value |
