This commit is contained in:
pycook 2016-06-27 10:50:32 +08:00 committed by pycook
parent 89fa687bba
commit 02c01f60bf
3 changed files with 5 additions and 3 deletions

View File

@ -3,6 +3,8 @@
import datetime
from markupsafe import escape
from models.attribute import TextChoice
from models.attribute import FloatChoice
from models.attribute import IntegerChoice
@ -39,7 +41,7 @@ type_map = {
'converter': {
'int': string2int,
'float': float,
'text': unicode,
'text': escape,
'datetime': str2datetime,
},
'choice': {