summaryrefslogtreecommitdiff
path: root/django/utils/functional.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-03-18 11:22:43 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-03-18 11:22:43 +0100
commit9dc5702932a0031bc4fb5473f2cdccffc61dbe30 (patch)
tree0cb3db3b4b69805039a6113bb119c29f2593114a /django/utils/functional.py
parent0efafa4c54ab8ad684df66c8e34928bb2ba88656 (diff)
Fixed #19456 -- Avoid infinite recursion when tracing LazyObject.__init__.
Thanks blaze33 for the patch.
Diffstat (limited to 'django/utils/functional.py')
-rw-r--r--django/utils/functional.py4
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