]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Reverting property workaround
authorJason Kirtland <jek@discorporate.us>
Wed, 1 Apr 2009 02:04:10 +0000 (02:04 +0000)
committerJason Kirtland <jek@discorporate.us>
Wed, 1 Apr 2009 02:04:10 +0000 (02:04 +0000)
lib/sqlalchemy/orm/attributes.py

index aa012f27750a5338ec51f2026677f64318fa802f..da071d90a0c7175a4bc2b0679fb14a657d6d912e 100644 (file)
@@ -139,11 +139,10 @@ class QueryableAttribute(interfaces.PropComparator):
     def __str__(self):
         return repr(self.parententity) + "." + self.property.key
 
-#    @property
-#    def property(self):
-#        return self.comparator.property
-    
-QueryableAttribute.property = property(lambda self:self.comparator.property)
+    @property
+    def property(self):
+        return self.comparator.property
+
 
 class InstrumentedAttribute(QueryableAttribute):
     """Public-facing descriptor, placed in the mapped class dictionary."""