Code

Ticket #13689: paginator_patch_13316.diff

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

The mentioned patch

Line 
1Index: django/core/paginator.py
2===================================================================
3--- django/core/paginator.py    (revision 13316)
4+++ django/core/paginator.py    (working copy)
5@@ -12,7 +12,7 @@
6 class Paginator(object):
7     def __init__(self, object_list, per_page, orphans=0, allow_empty_first_page=True):
8         self.object_list = object_list
9-        self.per_page = per_page
10+        self.per_page = int(per_page)
11         self.orphans = orphans
12         self.allow_empty_first_page = allow_empty_first_page
13         self._num_pages = self._count = None