Skip to content
Snippets Groups Projects
Commit 3f59135d authored by Sebastien Alix's avatar Sebastien Alix
Browse files

[FIX] read() method returns None values incompatible with XML-RPC

parent 869b647c
No related branches found
No related tags found
No related merge requests found
......@@ -615,7 +615,7 @@ class Field(object):
""" convert `value` from the cache to a value as returned by method
:meth:`BaseModel.read`
"""
return value
return False if value is None else value
def convert_to_write(self, value, target=None, fnames=None):
""" convert `value` from the cache to a valid value for method
......
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