Fix DomainBlock.id usage during __iter__()

This commit is contained in:
Justin Warren 2023-01-13 17:30:41 +11:00
parent 55dad3fa32
commit a718af5a0b
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ class DomainBlock(object):
"""Be iterable"""
keys = self.fields
if self.id:
if getattr(self, 'id', False):
keys.append('id')
for k in keys: