mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-28 10:16:10 -06:00
This commit is contained in:
parent
290e4afaa0
commit
44f173f01d
@ -114,6 +114,8 @@ class CSVMultipleContentTypeField(forms.ModelMultipleChoiceField):
|
|||||||
|
|
||||||
# TODO: Improve validation of selected ContentTypes
|
# TODO: Improve validation of selected ContentTypes
|
||||||
def prepare_value(self, value):
|
def prepare_value(self, value):
|
||||||
|
if not value:
|
||||||
|
return None
|
||||||
if type(value) is str:
|
if type(value) is str:
|
||||||
ct_filter = Q()
|
ct_filter = Q()
|
||||||
for name in value.split(','):
|
for name in value.split(','):
|
||||||
|
Loading…
Reference in New Issue
Block a user