mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-20 20:32:25 -06:00
Fixes #6908: Allow assignment of scope to VLAN groups upon import
This commit is contained in:
@@ -269,6 +269,8 @@ class CSVContentTypeField(CSVModelChoiceField):
|
||||
return f'{value.app_label}.{value.model}'
|
||||
|
||||
def to_python(self, value):
|
||||
if not value:
|
||||
return None
|
||||
try:
|
||||
app_label, model = value.split('.')
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user