              related_model=_resolve_model(field.rel.to),
              to_many=True,
              has_through_model=(
                  not field.rel.through._meta.auto_created
              )
          )
 
</s>
            # manytomany do not have to_fields
            to_field=None,
              related_model=_resolve_model(field.rel.to),
              to_many=True,
            # manytomany do not have to_fields
            to_field=None,
              has_through_model=(
                  not field.rel.through._meta.auto_created
              )
          )
keep add keep keep keep keep
 Added support for the to_field on ForeignKey fields
rest_framework/utils/model_meta.py