Skip to content
Snippets Groups Projects
Commit b2b365ce authored by Paul McCarthy's avatar Paul McCarthy
Browse files

When a string property was set to None, it was converting itself to a string 'None'.

parent 09817fe6
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,6 @@ ...@@ -116,7 +116,6 @@
import logging import logging
from collections import OrderedDict
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
......
...@@ -139,8 +139,10 @@ class String(props.PropertyBase): ...@@ -139,8 +139,10 @@ class String(props.PropertyBase):
def cast(self, value): def cast(self, value):
if value is None: value = ''
else: value = str(value)
value = str(value)
if value == '': value = None if value == '': value = None
return value return value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment