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] [metadata]
name = yamlhttpforms name = yamlhttpforms
version = 0.0.5 version = 0.0.6
author = Daniil F. author = Daniil F.
author_email = mail@placeholder123.to author_email = mail@placeholder123.to
description = HTTP forms defined in YAML description = HTTP forms defined in YAML

View File

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