Ensure to always have the field name in the dictionary definition

This commit is contained in:
Cédric Krier committed 2011-10-20 12:58:02 +02:00
1 parent 03c968d5ce
commit 8ef837eb25
1 file changed
+4 -1
+4 -1
View File
@@ -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',