- changed status to resolved
`add()` and `add_all()` missing on` ScopedSession`
Issue #1118
resolved
Release 0.4.7 backported the add()
and add_all()
methods from the 0.5 branch as aliases to the Session
object. However, they are not available on the ScopedSession
object, which I created in my case with scoped_session(sessionmaker())
, and as indicated by this error message:
AttributeError: 'ScopedSession' object has no attribute 'add'
I assume this can be fixed by adding the two method names to the tuple in line 100 in sqlalchemy/orm/scoping.py
.
-Jochen Kupperschmidt
Comments (1)
-
repo owner - Log in to comment
yup, committed in 80a0abb7a7423f63bbda171da292dc8a18f5ece5. I'll post the 0.4.7 workaround on the ML: