summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/attributes.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/attributes.py')
-rw-r--r--lib/sqlalchemy/attributes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/attributes.py b/lib/sqlalchemy/attributes.py
index e399e7ed0..98884df44 100644
--- a/lib/sqlalchemy/attributes.py
+++ b/lib/sqlalchemy/attributes.py
@@ -78,10 +78,10 @@ class ManagedAttribute(object):
which occurs through the SmartProperty property object ultimately calls upon
ManagedAttribute objects associated with the instance via this dictionary."""
def __init__(self, obj, key):
- #self.__obj = weakref.ref(obj)
- self.obj = obj
+ self.__obj = weakref.ref(obj)
+ #self.obj = obj
self.key = key
- #obj = property(lambda s:s.__obj())
+ obj = property(lambda s:s.__obj())
def history(self, **kwargs):
return self
def plain_init(self, *args, **kwargs):