Limit the fix to custom field data

This commit is contained in:
Peter Eckel 2024-08-11 12:51:20 +00:00
parent 3dea3ffe05
commit e8a5fa32ce

View File

@ -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, ''))