diff --git a/odata/query.py b/odata/query.py index 4d276ad..5d54972 100644 --- a/odata/query.py +++ b/odata/query.py @@ -73,7 +73,7 @@ def __iter__(self): for row in value: yield self._create_model(row) - if '@odata.nextLink' in data: + if '@odata.nextLink' in data and not '$top' in options.keys(): #do not load next page on userpaging url = urljoin(self.entity.__odata_url_base__, data['@odata.nextLink']) options = {} # we get all options in the nextLink url else: