fixes #978, autotypes and unicode strings, thanks remcoboerma
This commit is contained in:
@@ -1691,6 +1691,7 @@ class SQLFORM(FORM):
|
|||||||
|
|
||||||
AUTOTYPES = {
|
AUTOTYPES = {
|
||||||
type(''): ('string', None),
|
type(''): ('string', None),
|
||||||
|
type(u''): ('string',None),
|
||||||
type(True): ('boolean', None),
|
type(True): ('boolean', None),
|
||||||
type(1): ('integer', IS_INT_IN_RANGE(-1e12, +1e12)),
|
type(1): ('integer', IS_INT_IN_RANGE(-1e12, +1e12)),
|
||||||
type(1.0): ('double', IS_FLOAT_IN_RANGE()),
|
type(1.0): ('double', IS_FLOAT_IN_RANGE()),
|
||||||
|
|||||||
Reference in New Issue
Block a user