

def _reset_dict_cache(self):
    for cls in (Relationship, InverseRelationship):
        key = (cls._cache_prefix + str(self.pk))
        if (key in cls._dict_cache):
            del cls._dict_cache[key]

dataset/ETHPy150Open wq/wq.db/patterns/relate/models.py Relationship._reset_dict_cache/original