mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Fixed #19262 -- Support cookie pickling in SimpleTemplateResponse
Refs #15863.
This commit is contained in:
		
				
					committed by
					
						 Claude Paroz
						Claude Paroz
					
				
			
			
				
	
			
			
			
						parent
						
							1b307d6c8f
						
					
				
				
					commit
					4d817b3887
				
			| @@ -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.') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user