SimpleTepmlateResponse is not re-picklable
|Reported by:||ironfroggy||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When pickling a template response, a few attributes are stripped. Notably, template_name and context_data, from the state data for serialization. If you unpickle such a response and then try to pickle *that* object, setstate will fail when it tries to delete items from the data which are already missing.
1) Why are these removed and do they need to be?
2) If so, the del statements should catch KeyErrors or check for membership first.