diff options
Diffstat (limited to 'django/utils/datastructures.py')
| -rw-r--r-- | django/utils/datastructures.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/utils/datastructures.py b/django/utils/datastructures.py index 99f9ff2a72..e605ce0720 100644 --- a/django/utils/datastructures.py +++ b/django/utils/datastructures.py @@ -37,6 +37,10 @@ class OrderedSet: def __len__(self): return len(self.dict) + def __repr__(self): + data = repr(list(self.dict)) if self.dict else '' + return f'{self.__class__.__qualname__}({data})' + class MultiValueDictKeyError(KeyError): pass |
