summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Kozlov <mail@pkozlov.ru>2015-04-21 18:51:19 (GMT)
committerPavel Kozlov <mail@pkozlov.ru>2015-04-21 18:51:19 (GMT)
commit8d5f7d30957d043cb04358f9a7d43826080f0fd8 (patch)
tree051d708c4f33715d2ead94ba92b1f843b43e9311
parenta4ea2cf9ece508fc28fbd29b82e87e4e7f8d5995 (diff)
downloaddjango-import-export-8d5f7d30957d043cb04358f9a7d43826080f0fd8.zip
django-import-export-8d5f7d30957d043cb04358f9a7d43826080f0fd8.tar.gz
django-import-export-8d5f7d30957d043cb04358f9a7d43826080f0fd8.tar.bz2
to_encoding functionality
-rw-r--r--import_export/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/import_export/admin.py b/import_export/admin.py
index 8d1c83a..a7f94d1 100644
--- a/import_export/admin.py
+++ b/import_export/admin.py
@@ -306,7 +306,7 @@ class ExportMixin(ImportExportMixinBase):
resource_class = self.get_export_resource_class()
data = resource_class().export(queryset)
export_data = file_format.export_data(data)
- return export_data
+ return export_data.encode(self.to_encoding)
def export_action(self, request, *args, **kwargs):
formats = self.get_export_formats()