From 6554137eebe4bd10bdf3f1be21f63f0a9cffd7ff Mon Sep 17 00:00:00 2001 From: Sean Breant Date: Fri, 9 Nov 2012 21:07:53 +0100 Subject: [1.5.x] Fixed #19262 -- Support cookie pickling in SimpleTemplateResponse Refs #15863. Backport of 4d817b3887 from master. --- django/template/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') diff --git a/django/template/response.py b/django/template/response.py index 2cb44d127d..3b3b41331a 100644 --- a/django/template/response.py +++ b/django/template/response.py @@ -40,7 +40,7 @@ class SimpleTemplateResponse(HttpResponse): rendered, and that the pickled state only includes rendered data, not the data used to construct the response. """ - obj_dict = self.__dict__.copy() + obj_dict = super(SimpleTemplateResponse, self).__getstate__() if not self._is_rendered: raise ContentNotRenderedError('The response content must be ' 'rendered before it can be pickled.') -- cgit v1.3