Skip to content

Commit

Permalink
add nosonar to handle_delete comments
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Nov 5, 2021
1 parent 3b56e6a commit 4b70378
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bothub/common/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def handle_pre_delete(self, sender, instance, **kwargs):
)

def handle_delete(self, sender, instance, **kwargs):
# app_label = instance._meta.app_label
# model_name = instance._meta.model_name
# model = instance._meta.concrete_model
# if model in registry._models or model in registry._related_models:
# celery_app.send_task(
# "es_handle_delete", args=[instance.pk, app_label, model_name]
# )
# app_label = instance._meta.app_label // NOSONAR
# model_name = instance._meta.model_name // NOSONAR
# model = instance._meta.concrete_model // NOSONAR
# if model in registry._models or model in registry._related_models: // NOSONAR
# celery_app.send_task( // NOSONAR
# "es_handle_delete", args=[instance.pk, app_label, model_name] // NOSONAR
# ) // NOSONAR
pass

0 comments on commit 4b70378

Please sign in to comment.