Skip to content

Commit 57e22ee

Browse files
unknownunknown
unknown
authored and
unknown
committed
fixed django-import-export#105 unicode import
1 parent ddb4ffd commit 57e22ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

import_export/resources.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def import_data(self, dataset, dry_run=False, raise_errors=False,
341341
self.save_instance(instance, real_dry_run)
342342
self.save_m2m(instance, row, real_dry_run)
343343
# Add object info to RowResult for LogEntry
344-
row_result.object_repr = str(instance)
344+
row_result.object_repr = force_text(instance)
345345
row_result.object_id = instance.pk
346346
row_result.diff = self.get_diff(original, instance,
347347
real_dry_run)

0 commit comments

Comments
 (0)