fixes #978, autotypes and unicode strings, thanks remcoboerma

This commit is contained in:
mdipierro
2015-06-25 04:31:41 -05:00
parent 28e6999e7d
commit df34869d65
+1
View File
@@ -1691,6 +1691,7 @@ class SQLFORM(FORM):
AUTOTYPES = {
type(''): ('string', None),
type(u''): ('string',None),
type(True): ('boolean', None),
type(1): ('integer', IS_INT_IN_RANGE(-1e12, +1e12)),
type(1.0): ('double', IS_FLOAT_IN_RANGE()),