Commits

Mike Bayer  committed 6d0a506

- dont do a boolean check on the mapped object

  • Participants
  • Parent commits dee2bc0

Comments (0)

Files changed (1)

File lib/sqlalchemy/orm/session.py

                     self.dispatch.before_attach:
                 self.dispatch.before_attach(self, state.obj())
             state.session_id = self.hash_key
-            if state.modified and not state._strong_obj:
+            if state.modified and state._strong_obj is None:
                 state._strong_obj = state.obj()
             if self.dispatch.after_attach:
                 self.dispatch.after_attach(self, state.obj())