#NEWLINE# def get_context_data( self , **kwargs ) : #NEWLINE# #INDENT# 'Get the context for this view.\n\n        Also adds the *page_template* variable in the context.\n\n        If the *page_template* is not given as a kwarg of the *as_view*\n        method then it is generated using app label, model name\n        (obviously if the list is a queryset), *self.template_name_suffix*\n        and *self.page_template_suffix*.\n\n        For instance, if the list is a queryset of *blog.Entry*,\n        the template will be ``blog/entry_list_page.html``.\n        ' #NEWLINE# queryset = kwargs . pop ( 'object_list' ) #NEWLINE# page_template = kwargs . pop ( 'page_template' ) #NEWLINE# context_object_name = self . get_context_object_name ( queryset ) #NEWLINE# context = { #NEWLINE# #INDENT# 'object_list' : queryset , #NEWLINE# 'view' : self , #NEWLINE# #UNINDENT# } #NEWLINE# context . update ( kwargs ) #NEWLINE# if ( context_object_name is not None ) : #NEWLINE# #INDENT# context [ context_object_name ] = queryset #NEWLINE# #UNINDENT# if ( page_template is None ) : #NEWLINE# #INDENT# if hasattr ( queryset , 'model' ) : #NEWLINE# #INDENT# page_template = self . get_page_template ( ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ImproperlyConfigured ( 'AjaxListView requires a page_template' ) #NEWLINE# #UNINDENT# #UNINDENT# context [ 'page_template' ] = self . page_template = page_template #NEWLINE# return context