fixed optional formatting of empty list:string

This commit is contained in:
Massimo
2013-04-25 18:10:56 -05:00
parent 97b70eff9f
commit 178f94af8c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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