]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add autoflush to the list of attributes exported on scoped_session
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 21 Jan 2010 16:23:22 +0000 (16:23 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 21 Jan 2010 16:23:22 +0000 (16:23 +0000)
lib/sqlalchemy/orm/scoping.py

index a8ed9c9108d4a17368903deae42ec8657b0548e8..0df9e8000e29b9524f7d15d38b320a3ef9df0deb 100644 (file)
@@ -135,7 +135,7 @@ def makeprop(name):
     def get(self):
         return getattr(self.registry(), name)
     return property(get, set)
-for prop in ('bind', 'dirty', 'deleted', 'new', 'identity_map', 'is_active'):
+for prop in ('bind', 'dirty', 'deleted', 'new', 'identity_map', 'is_active', 'autoflush'):
     setattr(ScopedSession, prop, makeprop(prop))
 
 def clslevel(name):