diff options
Diffstat (limited to 'django/core/validators.py')
| -rw-r--r-- | django/core/validators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/validators.py b/django/core/validators.py index a5641d85b3..9b04dad4ab 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -244,7 +244,7 @@ class EmailValidator: def __eq__(self, other): return ( isinstance(other, EmailValidator) - and (self.domain_allowlist == other.domain_allowlist) + and (set(self.domain_allowlist) == set(other.domain_allowlist)) and (self.message == other.message) and (self.code == other.code) ) |
