def import_obj(self, obj, data, dry_run):
errors = {}<EOL>for field in self.get_import_fields():<EOL><INDENT>if isinstance(field.widget, widgets.ManyToManyWidget):<EOL><INDENT>continue<EOL><DEDENT>try:<EOL><INDENT>self.import_field(field, obj, data)<EOL><DEDENT>except ValueError as e:<EOL><INDENT>errors[field.attribute] = ValidationError(<EOL>force_text(e), code="<STR_LIT>")<EOL><DEDENT><DEDENT>if errors:<EOL><INDENT>raise ValidationError(errors)<EOL><DEDENT>
Traverses every field in this Resource and calls
:meth:`~import_export.resources.Resource.import_field`. If
``import_field()`` results in a ``ValueError`` being raised for
one of more fields, those errors are captured and reraised as a single,
multi-field ValidationError.