Proposed fix for issue 2315

This commit is contained in:
Jim Steil
2020-05-01 14:33:40 -05:00
committed by GitHub
parent ca8b5f6945
commit 933e3df9d3
+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