diff options
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | lib/sqlalchemy/orm/session.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -6,6 +6,7 @@ of subclassed directly. - activemapper will use threadlocal's objectstore if the mod is activated when activemapper is imported - small fix to URL regexp to allow filenames with '@' in them +- fixes to Session expunge/update/etc. 0.2.5 - fixed endless loop bug in select_by(), if the traversal hit diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py index 5bed7181c..82e1c6d6d 100644 --- a/lib/sqlalchemy/orm/session.py +++ b/lib/sqlalchemy/orm/session.py @@ -266,6 +266,7 @@ class Session(object): def expunge(self, object): """removes the given object from this Session. this will free all internal references to the object.""" self.uow.expunge(object) + self._unattach(object) def save(self, object, entity_name=None): """ |