fixed Issue 1520:incomplete fix for json and csv import
This commit is contained in:
@@ -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
|
||||
elif field.type=='blob':
|
||||
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':
|
||||
if not value.strip():
|
||||
value = None
|
||||
|
||||
Reference in New Issue
Block a user