Commit ae704eec by Tom Christie

Fix issue with pagination control always displaying

parent 25bb3b15
...@@ -306,7 +306,7 @@ class PageNumberPagination(BasePagination): ...@@ -306,7 +306,7 @@ class PageNumberPagination(BasePagination):
) )
raise NotFound(msg) raise NotFound(msg)
if paginator.count > 1 and self.template is not None: if paginator.num_pages > 1 and self.template is not None:
# The browsable API should display pagination controls. # The browsable API should display pagination controls.
self.display_page_controls = True self.display_page_controls = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment