#NEWLINE# def __getstate__( self ) : #NEWLINE# #INDENT# "Pickling support function.\n\n        Ensures that the object can't be pickled before it has been\n        rendered, and that the pickled state only includes rendered\n        data, not the data used to construct the response.\n        " #NEWLINE# obj_dict = self . __dict__ . copy ( ) #NEWLINE# if ( not self . _is_rendered ) : #NEWLINE# #INDENT# raise ContentNotRenderedError ( 'The response content must be rendered before it can be pickled.' ) #NEWLINE# #UNINDENT# del obj_dict [ 'template_name' ] #NEWLINE# del obj_dict [ 'context_data' ] #NEWLINE# del obj_dict [ '_post_render_callbacks' ] #NEWLINE# return obj_dict