if FIELDS is not defined, still raise id first
This commit is contained in:
parent
0ebf8d579d
commit
bf81773e8b
1 changed files with 2 additions and 1 deletions
|
|
@ -93,8 +93,9 @@ class CapBaseObject(object):
|
|||
"""
|
||||
|
||||
if self.FIELDS is None:
|
||||
yield 'id', self.id
|
||||
for key, value in iter_fields(self):
|
||||
if key not in ('backend','FIELDS'):
|
||||
if key not in ('id', 'backend','FIELDS'):
|
||||
yield key, value
|
||||
else:
|
||||
yield 'id', self.id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue