

def _get_pages(self):
    if (self._pages is None):
        hits = ((self.hits - 1) - self.orphans)
        if (hits < 1):
            hits = 0
        self._pages = ((hits // self.num_per_page) + 1)
    return self._pages

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/core/paginator.py ObjectPaginator._get_pages/original