Skip to content

Commit

Permalink
fix(apis_entities): remove self from list of entities to merge with
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed May 8, 2024
1 parent fcadf02 commit db19ac0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis_core/apis_entities/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit db19ac0

Please sign in to comment.