Fixes: #20098 - Handle empty object_types field in Tag bulk import (#20099)

This commit is contained in:
bctiemann
2025-08-15 14:34:21 -04:00
committed by GitHub
parent 290e4afaa0
commit 44f173f01d

View File

@@ -114,6 +114,8 @@ class CSVMultipleContentTypeField(forms.ModelMultipleChoiceField):
# TODO: Improve validation of selected ContentTypes
def prepare_value(self, value):
if not value:
return None
if type(value) is str:
ct_filter = Q()
for name in value.split(','):