mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-07 22:04:48 +03:00
Fixed missing limit swap in get_next_link
This commit is contained in:
parent
6d067bcd65
commit
1b7351763c
|
@ -390,7 +390,7 @@ class LimitOffsetPagination(BasePagination):
|
|||
|
||||
def get_next_link(self):
|
||||
limit = self.limit if self.limit > 0 else self.default_limit
|
||||
if self.offset + self.limit >= self.count:
|
||||
if self.offset + limit >= self.count:
|
||||
return None
|
||||
|
||||
url = self.request.build_absolute_uri()
|
||||
|
|
Loading…
Reference in New Issue
Block a user