code: def child_allocation(self):
          
          sum = Decimal(0)
          if self.classes:
              for child in self.classes:
                  sum += child.child_allocation
          else:
              # This is not a branch but a leaf. Return own allocation.
              sum = self.allocation
  
          return sum
docs: The sum of all child asset classes' allocations