@receiver(post_save, sender=Category)
@receiver(post_delete, sender=Category)
def post_save_category(sender, **kwargs):
    global all_categories
all_categories = []
Registering Multiple Signals in Django