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

Fix SimpleArrayWidget render crash #1771

Conversation

matthewhegarty
Copy link
Contributor

Problem

Closes #1769

Solution

Add check for None values and return value according to coerce_to_string param.

Acceptance Criteria

  • Added unit tests

@matthewhegarty matthewhegarty changed the title Issue 1769 simple array widget render Fix SimpleArrayWidget render crash Mar 12, 2024
@matthewhegarty matthewhegarty linked an issue Mar 15, 2024 that may be closed by this pull request
Copy link

@pokken-magic pokken-magic left a comment

Choose a reason for hiding this comment

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

LGTM :)

@matthewhegarty matthewhegarty merged commit 36dc278 into django-import-export:release-4 Mar 15, 2024
13 checks passed
@matthewhegarty matthewhegarty deleted the issue-1769-SimpleArrayWidget-render branch March 15, 2024 11:26
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.

SimpleArrayWidget.render() crashes if value is None
2 participants