#NEWLINE# @ property #NEWLINE# def template_context( self ) : #NEWLINE# #INDENT# ctxt = super ( AdminFacetedReport , self ) . template_context #NEWLINE# self . run_query ( 0 ) #NEWLINE# if self . es_params . get ( 'search' ) : #NEWLINE# #INDENT# ctxt [ 'search_query' ] = self . es_params . get ( 'search' ) [ 0 ] #NEWLINE# #UNINDENT# ctxt . update ( { #NEWLINE# #INDENT# 'layout_flush_content' : True , #NEWLINE# 'facet_map' : self . es_facet_map , #NEWLINE# 'query_str' : self . request . META [ 'QUERY_STRING' ] , #NEWLINE# 'facet_prefix' : self . es_prefix , #NEWLINE# 'facet_report' : ctxt , #NEWLINE# 'grouped_facets' : True , #NEWLINE# 'startdate' : self . request . GET . get ( 'startdate' , '' ) , #NEWLINE# 'enddate' : self . request . GET . get ( 'enddate' , '' ) , #NEWLINE# 'interval' : self . request . GET . get ( 'interval' , '' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# return ctxt