Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rest_framework_json_api/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def many_init(cls, *args, **kwargs):
for key in kwargs.keys():
if key in ('model',) + MANY_RELATION_KWARGS:
list_kwargs[key] = kwargs[key]
return SerializerMethodResourceRelatedField(**list_kwargs)
return cls(**list_kwargs)

def get_attribute(self, instance):
# check for a source fn defined on the serializer instead of the model
Expand Down