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:
committed by
Tim Graham
parent
f0ffa3f4ea
commit
d896809a3a
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user