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

This commit is contained in:
sebalix 2014-07-20 13:31:50 +02:00
parent 869b647c02
commit 3f59135dce
1 changed files with 1 additions and 1 deletions

View File

@ -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