🔧 chore(types.py): add support for custom field value in add_new_custom_field function

🔧 chore(types.py): add support for custom field value in add_new_custom_field function to allow specifying a default value for the field
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-27 09:44:01 -03:00
commit 4a0fe95093

View file

@ -98,6 +98,7 @@ def add_new_custom_field(
display_name = field_config.pop("display_name", field_name)
field_type = field_config.pop("field_type", field_type)
field_type = process_type(field_type)
field_value = field_config.pop("value", field_value)
if "name" in field_config:
warnings.warn(