From 933e3df9d333aadc610c1616d4b9c2b6f8b8a210 Mon Sep 17 00:00:00 2001 From: Jim Steil Date: Fri, 1 May 2020 14:33:40 -0500 Subject: [PATCH] Proposed fix for issue 2315 --- gluon/sqlhtml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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