Ticket #13689: paginator_patch_13316.diff

File paginator_patch_13316.diff, 575 bytes (added by rbanffy, 5 years ago)

The mentioned patch

  • django/core/paginator.py

     
    1212class Paginator(object):
    1313    def __init__(self, object_list, per_page, orphans=0, allow_empty_first_page=True):
    1414        self.object_list = object_list
    15         self.per_page = per_page
     15        self.per_page = int(per_page)
    1616        self.orphans = orphans
    1717        self.allow_empty_first_page = allow_empty_first_page
    1818        self._num_pages = self._count = None
Back to Top