diff options
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/functional.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py index f19a46aa3a..13aec9cb82 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -222,6 +222,10 @@ class LazyObject(object): By subclassing, you have the opportunity to intercept and alter the instantiation. If you don't need to do that, use SimpleLazyObject. """ + + # Avoid infinite recursion when tracing __init__ (#19456). + _wrapped = None + def __init__(self): self._wrapped = empty |
