Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include allowed formats settings #1606

Conversation

EricOuma
Copy link
Member

Problem

XLS is becoming obsolete and is introducing problems such as #1592 and #1601

Solution

Having settings that can be used by developers to specify what formats one wants to be available to end users who know nothing about such errors.

Acceptance Criteria

Yes I have added tests and documented my changes

Settings
code

Import Formats Available
WhatsApp Image 2023-08-10 at 03 10 24

Export Formats Available
export

Export Action Formats Available
export_action

Copy link
Contributor

@matthewhegarty matthewhegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @EricOuma

This is great, a really useful change. Thanks for submitting. Feel free to add your name to AUTHORS.

It will potentially improve security as well. It would be worth updating the security section in advanced_usage.rst to clarify that limiting the available imports / exports is an important security consideration.

docs/installation.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@matthewhegarty matthewhegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great - thanks for submitting

@matthewhegarty matthewhegarty merged commit c2b2f1e into django-import-export:main Sep 7, 2023
8 of 13 checks passed
@EricOuma EricOuma deleted the include_allowed_formats_settings branch September 13, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants