Skip to content

Commit

Permalink
fix(signal): make log f-strings real f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jun 4, 2024
1 parent d9cb009 commit b4b93ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis_ontology/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
@receiver(post_merge_with)
def merge_references(sender, instance, entities, **kwargs):
for entity in entities:
logger.info("Moving references from {entity} to {instance}")
logger.info(f"Moving references from {entity} to {instance}")
references = Reference.objects.filter(content_type=entity.self_contenttype, object_id=entity.id).update(object_id=instance.id)


@receiver(post_duplicate)
def copy_references(sender, instance, duplicate, **kwargs):
logger.info("Copying references from {instance} to {duplicate}")
logger.info(f"Copying references from {instance} to {duplicate}")
content_type = ContentType.objects.get_for_model(instance)
for ref in Reference.objects.filter(content_type=content_type, object_id=instance.id):
ref.pk = None
Expand Down

0 comments on commit b4b93ee

Please sign in to comment.