fixes
This commit is contained in:
parent
309a9b678e
commit
3001caf7ce
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user