Commit 5ecb59f2 authored by etreand's avatar etreand

Don't add an offset if the page_size is None.

parent 72caba1e
......@@ -809,7 +809,7 @@ class ModelView(BaseModelView):
if page_size is False:
page_size = None
if page is not None:
if page is not None and page_size is not None:
query = query.offset(page * page_size)
query = query.limit(page_size)
......
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