fixed Issue 1520:incomplete fix for json and csv import
This commit is contained in:
1 parent
484b8e5cc9
commit
bf3770dc98
2 files changed
+1
-7
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.5.1-stable+timestamp.2013.06.09.16.41.01
|
Version 2.5.1-stable+timestamp.2013.06.09.16.43.01
|
||||||
@@ -8675,12 +8675,6 @@ class Table(object):
|
|||||||
value = None
|
value = None
|
||||||
elif field.type=='blob':
|
elif field.type=='blob':
|
||||||
value = base64.b64decode(value)
|
value = base64.b64decode(value)
|
||||||
elif field.type=='json':
|
|
||||||
try:
|
|
||||||
json = serializers.json
|
|
||||||
value = json(value)
|
|
||||||
except TypeError:
|
|
||||||
pass
|
|
||||||
elif field.type=='double' or field.type=='float':
|
elif field.type=='double' or field.type=='float':
|
||||||
if not value.strip():
|
if not value.strip():
|
||||||
value = None
|
value = None
|
||||||
|
|||||||
Reference in new issue
Block a user