|
|
@@ -158,7 +158,7 @@ class CustomFieldModelSerializer(ValidatedModelSerializer):
|
|
|
instance.custom_fields = {}
|
|
|
for field in custom_fields:
|
|
|
value = instance.cf.get(field.name)
|
|
|
- if field.type == CustomFieldTypeChoices.TYPE_SELECT and value is not None:
|
|
|
+ if field.type == CustomFieldTypeChoices.TYPE_SELECT and value:
|
|
|
instance.custom_fields[field.name] = CustomFieldChoiceSerializer(value).data
|
|
|
else:
|
|
|
instance.custom_fields[field.name] = value
|