﻿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
28389	Regression in pickling LazyObject on Python 2 if wrapped object doesn't have __reduce__()	Sergey Fedoseev	Sergey Fedoseev	"{{{
In [126]: import pickle
In [127]: from django.utils.functional import LazyObject
In [128]: class A(object):
     ...:     pass
     ...:
In [129]: lazy_obj = LazyObject()
In [130]: a = A()
In [131]: a.foo = 'bar'
In [132]: lazy_obj._wrapped = a
In [133]: pickle.loads(pickle.dumps(lazy_obj)).foo
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-133-a85d49df8170> in <module>()
----> 1 pickle.loads(pickle.dumps(lazy_obj)).foo

AttributeError: 'A' object has no attribute 'foo'
}}}

Introduced in 35355a4ffedb2aeed52d5fe3034380ffc6a438db."	Bug	closed	Utilities	1.11	Normal	fixed			Ready for checkin	1	0	0	0	0	0
