'Updates the tracked state of an instance.'

def __cache_state(self, instance):

    if instance.pk:
        self.__cache[instance] = {f: self.__value_for_field(instance, f) for f in self.cache_fields}
