fixed Issue 1520:incomplete fix for json and csv import
This commit is contained in:
@@ -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