diff options
Diffstat (limited to 'django/core')
| -rw-r--r-- | django/core/paginator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/paginator.py b/django/core/paginator.py index b07be513d3..6c9a2dac91 100644 --- a/django/core/paginator.py +++ b/django/core/paginator.py @@ -95,7 +95,7 @@ class Paginator: if self.count == 0 and not self.allow_empty_first_page: return 0 hits = max(1, self.count - self.orphans) - return int(ceil(hits / float(self.per_page))) + return ceil(hits / self.per_page) @property def page_range(self): |
