From d896809a3ae8dfe45864f284c3ef45bfbb2e5ba1 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 2 Oct 2017 14:49:26 +0200 Subject: Refs #23919 -- Removed unneeded float()/int() calls. --- django/core/paginator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/core') 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): -- cgit v1.3