fixed issue 391, thanks Dulakian
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-08-08 12:29:42) dev
|
||||
Version 2.00.0 (2012-08-08 12:40:01) dev
|
||||
|
||||
+2
-1
@@ -4502,7 +4502,8 @@ class CouchDBAdapter(NoSQLAdapter):
|
||||
return repr(str(int(value)))
|
||||
elif fieldtype in ('date','time','datetime','boolean'):
|
||||
return serializers.json(value)
|
||||
return repr(not isinstance(value,unicode) and value or value.encode('utf8'))
|
||||
return repr(not isinstance(value,unicode) and value \
|
||||
or value and value.encode('utf8'))
|
||||
|
||||
def __init__(self,db,uri='couchdb://127.0.0.1:5984',
|
||||
pool_size=0,folder=None,db_codec ='UTF-8',
|
||||
|
||||
Reference in New Issue
Block a user