Detect duplicate objects with id "0"

This commit is contained in:
Florent 2014-04-24 16:17:38 +02:00
commit 6cae2cd0a5

View file

@ -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)