diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index c0fb955e..5c82c17c 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1501,7 +1501,7 @@ class SQLFORM(FORM): if readonly and not ignore_rw and not field.readable: continue - if record: + if record and fieldname not in [x.name for x in extra_fields]: default = record[fieldname] else: default = field.default