From e1fb9dd9f066a6724c14660454cbd87eba2fff28 Mon Sep 17 00:00:00 2001 From: yalef Date: Mon, 25 Sep 2023 22:30:53 +0500 Subject: [PATCH 1/3] Remove support of `escape-output` --- import_export_extensions/admin/mixins/export_mixin.py | 1 - import_export_extensions/models/export_job.py | 1 - 2 files changed, 2 deletions(-) diff --git a/import_export_extensions/admin/mixins/export_mixin.py b/import_export_extensions/admin/mixins/export_mixin.py index 356c416..05a1ee4 100644 --- a/import_export_extensions/admin/mixins/export_mixin.py +++ b/import_export_extensions/admin/mixins/export_mixin.py @@ -69,7 +69,6 @@ def get_export_resource_kwargs(self, request, *args, **kwargs): """Provide escape settings to resource kwargs.""" kwargs = super().get_export_resource_kwargs(request, *args, **kwargs) kwargs.update({ - "escape_output": self.should_escape_output, "escape_html": self.should_escape_html, "escape_formulae": self.should_escape_formulae, }) diff --git a/import_export_extensions/models/export_job.py b/import_export_extensions/models/export_job.py index 51b6264..954341c 100644 --- a/import_export_extensions/models/export_job.py +++ b/import_export_extensions/models/export_job.py @@ -335,7 +335,6 @@ def _export_data_inner(self): # file object (formats inherited from `BaseZipExport`) export_data = self.file_format.export_data( dataset=self.result, - escape_output=self.resource_kwargs.get("escape_output", False), escape_html=self.resource_kwargs.get("escape_html", False), escape_formulae=self.resource_kwargs.get("escape_formulae", False), ) From 740bcc2115aa0b0e0c6b3906b1d7afdbcc245b13 Mon Sep 17 00:00:00 2001 From: yalef Date: Mon, 25 Sep 2023 22:36:58 +0500 Subject: [PATCH 2/3] Update changelog --- HISTORY.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HISTORY.rst b/HISTORY.rst index 38ac140..cf43c8c 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,10 @@ History ======= +0.4.1 (2023-09-25) +------------------ +* Remvoe ``escape_output`` due it's deprecation + 0.4.0 (2023-09-11) ------------------ * Make possible to pass ``resource_kwargs`` in ViewSets From 2e4eaeb69beed6306812dc18ab79952971791b1e Mon Sep 17 00:00:00 2001 From: yalef Date: Thu, 28 Sep 2023 10:31:47 +0500 Subject: [PATCH 3/3] Update package version --- import_export_extensions/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import_export_extensions/__init__.py b/import_export_extensions/__init__.py index bb00fde..d8db81c 100644 --- a/import_export_extensions/__init__.py +++ b/import_export_extensions/__init__.py @@ -2,4 +2,4 @@ __author__ = """Saritasa""" __email__ = "pypi@saritasa.com" -__version__ = "0.4.0-alpha" +__version__ = "0.4.1-alpha"