Don't use value to create inherits model if the field is overridden in model
Like that we have the same behavior then write
This commit is contained in:
1 parent
748ce6ee39
commit
058000852a
1 file changed
+1
-1
@@ -270,7 +270,7 @@ class ModelSQL(ModelStorage):
|
||||
for i in values.keys():
|
||||
if i in self._inherit_fields:
|
||||
(inherits, col, col_detail) = self._inherit_fields[i]
|
||||
if i in self._columns and isinstance(col_detail, fields.Function):
|
||||
if i in self._columns:
|
||||
continue
|
||||
if inherits in tocreate:
|
||||
tocreate[inherits][i] = values[i]
|
||||
|
||||
Reference in new issue
Block a user