diff --git a/apis_core/apis_entities/models.py b/apis_core/apis_entities/models.py index a328635f8..645ecd4cb 100644 --- a/apis_core/apis_entities/models.py +++ b/apis_core/apis_entities/models.py @@ -151,6 +151,8 @@ def merge_fields(self, other): self.save() def merge_with(self, entities): + if self in entities: + entities.remove(self) origin = self.__class__ signals.pre_merge_with.send(sender=origin, instance=self, entities=entities)