Ticket #15575: is_paginated.diff

File is_paginated.diff, 675 bytes (added by i.virabyan@…, 14 years ago)
  • django/views/generic/list.py

     
    4747                raise Http404(_(u"Page is not 'last', nor can it be converted to an int."))
    4848        try:
    4949            page = paginator.page(page_number)
    50             return (paginator, page, page.object_list, True)
     50            return (paginator, page, page.object_list, paginator.num_pages > 1)
    5151        except InvalidPage:
    5252            raise Http404(_(u'Invalid page (%(page_number)s)') % {
    5353                                'page_number': page_number
Back to Top