Commit f49a97d3 authored by Yuri Prezument's avatar Yuri Prezument
Browse files

Fix cursor invocation, passing args to underlying method

parent f9b38110
......@@ -115,12 +115,11 @@ class IdIterator(BaseIterator):
# This is a special invocation that returns the underlying
# APIMethod class
model = ModelParser().parse(self.method(create=True), data)
if hasattr(self.method, '__self__'):
self.method.__self__.parser = old_parser
result = self.method.__self__.parser.parse(self.method(create=True), data)
result = self.method()
result = model
if len(self.results) != 0:
self.index += 1
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