Merge pull request #2316 from jpsteil/master
Proposed fix for issue 2315
This commit is contained in:
@@ -10,10 +10,6 @@ environment:
|
||||
COVERAGE_PROCESS_START: gluon/tests/coverage.ini
|
||||
PYTHON_ARCH: "64"
|
||||
|
||||
- PYTHON: "C:/Python35"
|
||||
COVERAGE_PROCESS_START: gluon/tests/coverage.ini
|
||||
PYTHON_ARCH: "64"
|
||||
|
||||
- PYTHON: "C:/Python36"
|
||||
COVERAGE_PROCESS_START: gluon/tests/coverage.ini
|
||||
PYTHON_ARCH: "64"
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user