(self, **kwargs)
return context
Get the context for this view.

        Also adds the *page_template* variable in the context.

        If the *page_template* is not given as a kwarg of the *as_view*
        method then it is generated using app label, model name
        (obviously if the list is a queryset), *self.template_name_suffix*
        and *self.page_template_suffix*.

        For instance, if the list is a queryset of *blog.Entry*,
        the template will be ``blog/entry_list_page.html``.
Get the context for this view.
Get the context for this view .
def get_context_data(self, **kwargs):
        """Get the context for this view.

        Also adds the *page_template* variable in the context.

        If the *page_template* is not given as a kwarg of the *as_view*
        method then it is generated using app label, model name
        (obviously if the list is a queryset), *self.template_name_suffix*
        and *self.page_template_suffix*.

        For instance, if the list is a queryset of *blog.Entry*,
        the template will be ``blog/entry_list_page.html``.
        """
        queryset = kwargs.pop('object_list')
        page_template = kwargs.pop('page_template', None)

        context_object_name = self.get_context_object_name(queryset)
        context = {'object_list': queryset, 'view': self}
        context.update(kwargs)
        if context_object_name is not None:
            context[context_object_name] = queryset

        if page_template is None:
            if hasattr(queryset, 'model'):
                page_template = self.get_page_template(**kwargs)
            else:
                raise ImproperlyConfigured(
                    'AjaxListView requires a page_template')
        context['page_template'] = self.page_template = page_template

        return context
def get_context_data ( self , * * kwargs ) : queryset = kwargs . pop ( 'object_list' ) page_template = kwargs . pop ( 'page_template' , None ) context_object_name = self . get_context_object_name ( queryset ) context = { 'object_list' : queryset , 'view' : self } context . update ( kwargs ) if context_object_name is not None : context [ context_object_name ] = queryset if page_template is None : if hasattr ( queryset , 'model' ) : page_template = self . get_page_template ( * * kwargs ) else : raise ImproperlyConfigured ( 'AjaxListView requires a page_template' ) context [ 'page_template' ] = self . page_template = page_template return context