diff --git a/VERSION b/VERSION index dff049ea..6d08a8b8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.6-stable+timestamp.2013.04.24.18.04.43 +Version 2.4.6-stable+timestamp.2013.04.25.18.09.54 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index dc9322fc..5e61ff3a 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1073,7 +1073,7 @@ class SQLFORM(FORM): cond = readonly or \ (not ignore_rw and not field.writable and field.readable) - if default and not cond: + if default is not None and not cond: default = field.formatter(default) dspval = default inpval = default