Fix create when inherits field is set for issue878
This commit is contained in:
1 parent
83814d6193
commit
748ce6ee39
1 file changed
+2
-1
@@ -272,7 +272,8 @@ class ModelSQL(ModelStorage):
|
||||
(inherits, col, col_detail) = self._inherit_fields[i]
|
||||
if i in self._columns and isinstance(col_detail, fields.Function):
|
||||
continue
|
||||
tocreate[inherits][i] = values[i]
|
||||
if inherits in tocreate:
|
||||
tocreate[inherits][i] = values[i]
|
||||
if i not in self._columns:
|
||||
del values[i]
|
||||
|
||||
|
||||
Reference in new issue
Block a user