diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2017-10-02 14:49:26 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-02 08:49:26 -0400 |
| commit | d896809a3ae8dfe45864f284c3ef45bfbb2e5ba1 (patch) | |
| tree | 295f2a149d8657e8988f81f5890aee2474f9ab6d /django/core | |
| parent | f0ffa3f4ea277f9814285085fde20baff60fc386 (diff) | |
Refs #23919 -- Removed unneeded float()/int() calls.
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): |
