diff --git a/rest_framework_json_api/relations.py b/rest_framework_json_api/relations.py index 9762bc74..7d52bb0f 100644 --- a/rest_framework_json_api/relations.py +++ b/rest_framework_json_api/relations.py @@ -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