Detect duplicate objects with id "0"
This commit is contained in:
parent
37f0445f44
commit
6cae2cd0a5
1 changed files with 1 additions and 1 deletions
|
|
@ -649,7 +649,7 @@ class ListElement(AbstractElement):
|
|||
|
||||
|
||||
def store(self, obj):
|
||||
if obj.id:
|
||||
if obj.id is not None:
|
||||
if obj.id in self.objects:
|
||||
if self.ignore_duplicate:
|
||||
self.logger.warning('There are two objects with the same ID! %s' % obj.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue