I have a signal callback in django:
@receiver(post_save, sender=MediumCategory)
def update_category_descendants(sender, **kwargs):
def children_for(categ
Perhaps I'm wrong, but I think that category.save()
is not needed in your code, add() is enough because change is made in descendant but in category.
Also, to avoid signals you can:
Descendant.objects.filter( pk = descendant.pk ).update( category = category )