mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
Limit the fix to custom field data
This commit is contained in:
parent
3dea3ffe05
commit
e8a5fa32ce
@ -55,7 +55,7 @@ def prepare_cloned_fields(instance):
|
||||
for key, value in attrs.items():
|
||||
if type(value) in (list, tuple):
|
||||
params.extend([(key, v) for v in value])
|
||||
elif value is not None:
|
||||
elif value is not None and (key.startswith('cf_') or value is not False):
|
||||
params.append((key, value))
|
||||
else:
|
||||
params.append((key, ''))
|
||||
|
Loading…
Reference in New Issue
Block a user