diff --git a/rest_framework/fields.py b/rest_framework/fields.py index c81dba4d9b..22a5d493bb 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -1773,7 +1773,7 @@ def __init__(self, model_field, **kwargs): def to_internal_value(self, data): rel = get_remote_field(self.model_field, default=None) if rel is not None: - return rel.to._meta.get_field(rel.field_name).to_python(data) + return rel.model._meta.get_field(rel.field_name).to_python(data) return self.model_field.to_python(data) def get_attribute(self, obj):