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