def update(self, instance, oldValue, newValue):
    """Updates the aggregate based on a change in the child value."""
    self.__set__(instance,
                 self.__get__(instance, None) + newValue - (oldValue or 0))