Add refresh option to TemplateFieldCreator

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-21 16:42:46 -03:00
commit 31b3d9eb33

View file

@ -59,6 +59,9 @@ class TemplateFieldCreator(BaseModel, ABC):
info: Optional[str] = ""
"""Additional information about the field to be shown in the tooltip. Defaults to an empty string."""
refresh: bool = False
"""Specifies if the field should be refreshed. Defaults to False."""
def to_dict(self):
result = self.model_dump()
# Remove key if it is None