Fix setting CF data if CF object is missing
This commit is contained in:
@@ -31,6 +31,6 @@ for params in vlans:
|
||||
vlan, created = VLAN.objects.get_or_create(**params)
|
||||
|
||||
if created:
|
||||
set_custom_fields_values(vlan, custom_field_data)
|
||||
|
||||
print("🏠 Created VLAN", vlan.name)
|
||||
|
||||
set_custom_fields_values(vlan, custom_field_data)
|
||||
|
Reference in New Issue
Block a user