return value of the method field.rel.to._meta.pk.to_python called with an argument v. call the m2m_convert function with pk as argument, for every pk in field_value, substitute the value under the field.name key of the m2m_data dictionary.
m2m_data [ field . name ] = [ m2m_convert ( pk ) for pk in field_value ]