1
0
mirror of https://github.com/django/django.git synced 2025-10-27 07:36:08 +00:00

Refs #23919 -- Removed unneeded float()/int() calls.

This commit is contained in:
Mariusz Felisiak
2017-10-02 14:49:26 +02:00
committed by Tim Graham
parent f0ffa3f4ea
commit d896809a3a
5 changed files with 5 additions and 5 deletions

View File

@@ -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):