Ensure to always have the field name in the dictionary definition
This commit is contained in:
1 parent
03c968d5ce
commit
8ef837eb25
1 file changed
+4
-1
@@ -502,7 +502,10 @@ class Model(WarningErrorMixin, URLMixin):
|
||||
self._columns.keys(), 'write', access=True)
|
||||
for field in (x for x in self._columns.keys()
|
||||
if ((not fields_names) or x in fields_names)):
|
||||
res[field] = {'type': self._columns[field]._type}
|
||||
res[field] = {
|
||||
'type': self._columns[field]._type,
|
||||
'name': field,
|
||||
}
|
||||
for arg in (
|
||||
'string',
|
||||
'readonly',
|
||||
|
||||
Reference in new issue
Block a user