diff options
| author | Rik <gitaarik@gmail.com> | 2015-03-07 15:51:17 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2015-03-08 15:42:23 +0100 |
| commit | a5b225084f69e27b78fab0f2954fa9520656976e (patch) | |
| tree | d23da69f04b9cbe97b3511063d83075ea1a33ae8 /django/utils/functional.py | |
| parent | 888c9b6429a44824078a49fb1ebacf2e950cd887 (diff) | |
Fixed #23838 -- added missing `__iter__` to LazyObject
Diffstat (limited to 'django/utils/functional.py')
| -rw-r--r-- | django/utils/functional.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py index ddfd882e51..d0be511eaf 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -298,11 +298,11 @@ class LazyObject(object): __ne__ = new_method_proxy(operator.ne) __hash__ = new_method_proxy(hash) - # Dictionary methods support + # List/Tuple/Dictionary methods support __getitem__ = new_method_proxy(operator.getitem) __setitem__ = new_method_proxy(operator.setitem) __delitem__ = new_method_proxy(operator.delitem) - + __iter__ = new_method_proxy(iter) __len__ = new_method_proxy(len) __contains__ = new_method_proxy(operator.contains) |
