This commit is contained in:
Uğur Ünver 2015-08-19 23:06:07 +00:00
commit f42c253778

View File

@ -423,6 +423,11 @@ class LimitOffsetPagination(BasePagination):
_divide_with_ceil(self.count - self.offset, self.limit) +
_divide_with_ceil(self.offset, self.limit)
)
# Final page must be at least first page
if not final:
final = 1
if current > final:
current = final