This commit is contained in:
Daniil Fajnberg 2022-01-01 23:41:57 +01:00
parent 309a9b678e
commit 3001caf7ce
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[metadata]
name = yamlhttpforms
version = 0.0.5
version = 0.0.6
author = Daniil F.
author_email = mail@placeholder123.to
description = HTTP forms defined in YAML

View File

@ -28,6 +28,8 @@ class FormField:
for attr in function.split('.'):
obj = getattr(obj, attr)
self._default = obj
elif default is None:
self._default = None
else:
self._default = str(default)
self.options: Optional[OptionsT] = None