Skip to content

Commit

Permalink
Merge pull request #189 from dpaluch-rp/master
Browse files Browse the repository at this point in the history
Fix sideloading ADDITIONAL_PRIMARY_RESOURCE
  • Loading branch information
aleontiev authored Aug 9, 2017
2 parents 50efbe6 + 46f3780 commit 9769149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dynamic_rest/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def process(self, obj, parent=None, parent_key=None, depth=0):
self.data[name].append(obj)
else:
# obj sideloaded, but maybe with other fields
for o in self.data[name]:
for o in self.data.get(name, []):
if o.instance.pk == pk:
o.update(obj)
break
Expand Down

0 comments on commit 9769149

Please sign in to comment.