﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23838	LazyObject is missing __iter__	Rik	Rik	"The `LazyObject` class in `utils.functional` (https://github.com/django/django/blob/master/django/utils/functional.py#L235) is missing the `__iter__` magic method.

Other dict related magic methods like `__getitem__`, `__setitem__` and `__delitem__` are supported but not `__iter__`. I can't think of a reason it isn't there and haven't been able to find discussions about it. The `__getitem__`, `__setitem__` and `__delitem__` were added in this ticket:

https://code.djangoproject.com/ticket/18447

I think they just forgot `__iter__`. I'm proposing to add this. If this is done, then tickets like these:

https://code.djangoproject.com/ticket/23783

Can be resolved with `SimpleLazyObject` (which implements `LazyObject`)."	Cleanup/optimization	closed	Utilities	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
