Regression: Pickling error saving session with unsaved model instances (*_Deferred_)
|Reported by:||rfugger||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.
Change History (11)
comment:1 Changed 6 years ago by russellm
- milestone set to 1.2
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset