Regression: Pickling error saving session with unsaved model instances (*_Deferred_)
|Reported by:||Ryan Fugger||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Severity:||Keywords:||pickle, session, model, instance, deferred|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When attempting to store freshly-created unsaved model instances in a session, I get the following error:
PicklingError: Can't pickle <class 'order.models.OrderItem_Deferred_'>: attribute lookup order.models.OrderItem_Deferred_ failed
The object is an instance of OrderItem. Apparently django instantiates it as !OrderItem_Deferred_, and then pickle can't deal with it?
Using svn revision 11723. Worked fine in 11616.