Skip to content

Commit

Permalink
Update signals.py
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlinspace authored Aug 6, 2024
1 parent 76ff8de commit 4950237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexnow/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def send_indexnow_on_model_save(sender, instance, **kwargs):
send_indexnow_request(path)


@receiver(models.signals.post_delete, dispatch_uid='indexnow_model_save')
@receiver(models.signals.post_delete, dispatch_uid='indexnow_model_delete')
def send_indexnow_on_model_delete(sender, instance, **kwargs):
if sender in [User, Battle, BattleGroup, Group]:
path = instance.get_absolute_url()
Expand Down

0 comments on commit 4950237

Please sign in to comment.