          serializer_field_mapping[ModelDurationField] = DurationField
      if ModelJSONField is not None:
          serializer_field_mapping[ModelJSONField] = JSONField
      serializer_related_field = PrimaryKeyRelatedField
      serializer_url_field = HyperlinkedIdentityField
      serializer_choice_field = ChoiceField
  
      # The field name for hyperlinked identity fields. Defaults to 'url'.
 
</s> remove     model_field, related_model, to_many, has_through_model = relation_info
 </s> add     model_field, related_model, to_many, to_field, has_through_model = relation_info
    serializer_related_to_field = SlugRelatedField
          serializer_field_mapping[ModelDurationField] = DurationField
      if ModelJSONField is not None:
          serializer_field_mapping[ModelJSONField] = JSONField
      serializer_related_field = PrimaryKeyRelatedField
    serializer_related_to_field = SlugRelatedField
      serializer_url_field = HyperlinkedIdentityField
      serializer_choice_field = ChoiceField
  
      # The field name for hyperlinked identity fields. Defaults to 'url'.
keep keep keep add keep keep keep keep
 Added support for the to_field on ForeignKey fields 
rest_framework/serializers.py