diff --git a/django/utils/functional.py b/django/utils/functional.py
index 31466ee..dc04f4e 100644
a
|
b
|
class LazyObject(object):
|
222 | 222 | self._setup() |
223 | 223 | delattr(self._wrapped, name) |
224 | 224 | |
| 225 | def __getitem__(self, name): |
| 226 | if self._wrapped is empty: |
| 227 | self._setup() |
| 228 | return self._wrapped[name] |
| 229 | |
| 230 | def __setitem__(self, name, val): |
| 231 | if self._wrapped is empty: |
| 232 | self._setup() |
| 233 | self._wrapped[name] = val |
| 234 | |
225 | 235 | def _setup(self): |
226 | 236 | """ |
227 | 237 | Must be implemented by subclasses to initialise the wrapped object. |