Skip to content

Commit 08ceafc

Browse files
committed
portia_server: fix: TypeError: _do_load() takes 2 positional arguments
1 parent cd1d873 commit 08ceafc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

portia_server/portia_orm/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def order_keys(self, data):
7171
"""
7272
return OrderedDict((item for item in sorted(iteritems(data))))
7373

74-
def _do_load(self, data, many=None, *args, **kwargs):
74+
def _do_load(self, data, many=None, **kwargs):
7575
# support the case where we have only a single field to load and we get
7676
# it directly rather than wrapped in a dict. this happens when loading
7777
# a relationship with a single field in 'only'
@@ -82,7 +82,7 @@ def _do_load(self, data, many=None, *args, **kwargs):
8282
data = [self._wrap_only(value) for value in data]
8383

8484
result, errors = super(FileSerializer, self)._do_load(
85-
data, many, *args, **kwargs)
85+
data, many=many, **kwargs)
8686

8787
# we need to wrap the result of a many load in a ModelCollection, but
8888
# post_load(pass_many=True) processors are called before the Model

0 commit comments

Comments
 (0)