FIELDS isn't a field
This commit is contained in:
parent
56cc59cf5e
commit
c8bb18ea4b
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ class CapBaseObject(object):
|
||||||
|
|
||||||
if self.FIELDS is None:
|
if self.FIELDS is None:
|
||||||
for key, value in iter_fields(self):
|
for key, value in iter_fields(self):
|
||||||
if key != 'backend':
|
if key not in ('backend','FIELDS'):
|
||||||
yield key, value
|
yield key, value
|
||||||
else:
|
else:
|
||||||
yield 'id', self.id
|
yield 'id', self.id
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue