Merge pull request #2316 from jpsteil/master

Proposed fix for issue 2315
This commit is contained in:
mdipierro authored and GitHub committed 2020-05-13 20:53:56 -07:00
commit 7a7c84993f
2 files changed
+1 -5

No files matched your search

+1 -1
View File
@@ -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