Something fails to make a filter in python. The idea is this: I need to select all the objects that have not a single descendant, and those whose descendants have a score of zero. I can write two expressions separately, but I did not find how to write them together. I will be glad to answer, and even more reference to man.
Objects without descendants
objects.filter(children__isnull=True)
Objects with descendants of zero points
objects.filter(children__point=0)