From df34869d65c36468ea720322ca7990716cc8634e Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 25 Jun 2015 04:31:41 -0500 Subject: [PATCH] fixes #978, autotypes and unicode strings, thanks remcoboerma --- gluon/sqlhtml.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index e0cba56c..717858e1 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -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()),