Merge pull request #1 from jpsteil/jpsteil-patch-1

Proposed fix for issue 2315
This commit is contained in:
Jim Steil
2020-05-01 14:39:39 -05:00
committed by GitHub
+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