Made sure Attributes get dereferenced correctly.
This commit is contained in:
parent
5e4af3f851
commit
bc80132229
1 changed files with 2 additions and 1 deletions
|
|
@ -292,8 +292,9 @@ class WeakSharedMemoryModelBase(SharedMemoryModelBase):
|
||||||
Uses a WeakValue dictionary for caching instead of a regular one
|
Uses a WeakValue dictionary for caching instead of a regular one
|
||||||
"""
|
"""
|
||||||
def _prepare(cls):
|
def _prepare(cls):
|
||||||
cls.__instance_cache__ = WeakValueDictionary()
|
|
||||||
super(WeakSharedMemoryModelBase, cls)._prepare()
|
super(WeakSharedMemoryModelBase, cls)._prepare()
|
||||||
|
cls.__instance_cache__ = WeakValueDictionary()
|
||||||
|
cls._idmapper_recache_protection = False
|
||||||
|
|
||||||
class WeakSharedMemoryModel(SharedMemoryModel):
|
class WeakSharedMemoryModel(SharedMemoryModel):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue