Fix DomainBlock.id usage during __iter__()
This commit is contained in:
parent
55dad3fa32
commit
a718af5a0b
|
@ -215,7 +215,7 @@ class DomainBlock(object):
|
||||||
"""Be iterable"""
|
"""Be iterable"""
|
||||||
keys = self.fields
|
keys = self.fields
|
||||||
|
|
||||||
if self.id:
|
if getattr(self, 'id', False):
|
||||||
keys.append('id')
|
keys.append('id')
|
||||||
|
|
||||||
for k in keys:
|
for k in keys:
|
||||||
|
|
Loading…
Reference in New Issue