code: def sum_to_balance(self):
          
          result = self.values("amount_currency").annotate(total=models.Sum("amount"))
          return Balance([Money(r["total"], r["amount_currency"]) for r in result])
docs: Sum the Legs of the QuerySet to get a `Balance`_ object