Skip to content

Conversation

bctiemann
Copy link
Contributor

Fixes: #20098

Handles the case in CSVMultipleContentTypeField.prepare_value where value is null (which only occurs in Tag bulk import, where the object_types field is optional).

@bctiemann bctiemann requested review from a team and arthanson and removed request for a team August 14, 2025 22:47
Copy link
Collaborator

@arthanson arthanson left a comment

Choose a reason for hiding this comment

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

I think it would be cleaner/clearer right at the top of the function to have:

if not value:
    return None

as none of the other processing needs to be done.

@bctiemann bctiemann requested a review from arthanson August 15, 2025 17:58
@arthanson arthanson merged commit 44f173f into main Aug 15, 2025
10 checks passed
@jeremystretch jeremystretch deleted the 20098-fix-empty-object_types-in-tag-import branch August 15, 2025 19:17
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.

AttributeError during Tag Bulk Import
2 participants