]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add a synonym for RelationProperty -> RelationshipProperty too
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Mar 2010 00:30:45 +0000 (20:30 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Mar 2010 00:30:45 +0000 (20:30 -0400)
lib/sqlalchemy/orm/properties.py

index 879695e13de6e2b36d1ca42bc8dbfb6612e8f606..5c43fd35551482dfb13a4bd17d35dde0d31923c2 100644 (file)
@@ -26,7 +26,7 @@ from sqlalchemy.orm.interfaces import (
 NoneType = type(None)
 
 __all__ = ('ColumnProperty', 'CompositeProperty', 'SynonymProperty',
-           'ComparableProperty', 'RelationshipProperty', 'BackRef')
+           'ComparableProperty', 'RelationshipProperty', 'RelationProperty', 'BackRef')
 
 
 class ColumnProperty(StrategizedProperty):
@@ -1199,7 +1199,7 @@ class RelationshipProperty(StrategizedProperty):
         if not self.viewonly:
             self._dependency_processor.register_processors(uowcommit)
 
-PropertyLoader = RelationshipProperty
+PropertyLoader = RelationProperty = RelationshipProperty
 log.class_logger(RelationshipProperty)
 
 mapper.ColumnProperty = ColumnProperty