def build_page(self):
        try:
            page_no_authority = int(self.request.GET.get('page_authority', 1))
        except (TypeError, ValueError):
            raise Http404("Not a valid number for page.")

        try:
            page_no_citation= int(self.request.GET.get('page_citation', 1))
        except (TypeError, ValueError):
            raise Http404("Not a valid number for page.")

        if page_no_authority < 1:
            raise Http404("Pages should be 1 or greater.")

        if page_no_citation < 1:
            raise Http404("Pages should be 1 or greater.")

        start_offset_authority = (page_no_authority - 1) * self.results_per_page
        start_offset_citation = (page_no_citation - 1) * self.results_per_page

        if isinstance(self.queryset, EmptySearchQuerySet):
            self.queryset[0:self.results_per_page]
            paginator_authority = Paginator(self.queryset, self.results_per_page)
            paginator_citation = Paginator(self.queryset, self.results_per_page)

        else:
            self.queryset['citation'][start_offset_citation:start_offset_citation + self.results_per_page]
            self.queryset['authority'][start_offset_authority:start_offset_authority+ self.results_per_page]

            paginator_authority = Paginator(self.queryset['authority'], self.results_per_page)
            paginator_citation = Paginator(self.queryset['citation'], self.results_per_page)


        try:
            page_authority = paginator_authority.page(page_no_authority)
        except InvalidPage:
            try:
                page_authority = paginator_authority.page(1)
            except InvalidPage:
                raise Http404("No such page!")

        try:
            page_citation = paginator_citation.page(page_no_citation)
        except InvalidPage:
            try:
                page_citation = paginator_citation.page(1)
            except InvalidPage:
                raise Http404("No such page!")

        return ({'authority':paginator_authority, 'citation':paginator_citation}, {'authority':page_authority, 'citation':page_citation})
From haystacks SearchView:
dataset/ETHPy150Open upconsulting/IsisCB/isiscb/isisdata/views.py/IsisSearchView.build_page