diff options
Diffstat (limited to 'django/utils/datastructures.py')
-rw-r--r-- | django/utils/datastructures.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/datastructures.py b/django/utils/datastructures.py index 871b016715..99f9ff2a72 100644 --- a/django/utils/datastructures.py +++ b/django/utils/datastructures.py @@ -25,6 +25,9 @@ class OrderedSet: def __iter__(self): return iter(self.dict) + def __reversed__(self): + return reversed(self.dict) + def __contains__(self, item): return item in self.dict |