Skip to content

Commit

Permalink
orm.mapper is deprecated in SQLAlchemy
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Feb 19, 2024
1 parent 08812fa commit 39e6442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion depot/fields/sqlalchemy.py
Expand Up @@ -173,7 +173,7 @@ def _session_attached(cls, session, instance):

@classmethod
def setup(cls):
event.listen(orm.mapper, 'mapper_configured', cls._mapper_configured)
event.listen(orm.Mapper, 'mapper_configured', cls._mapper_configured)
event.listen(Session, 'after_soft_rollback', cls._session_rollback)
event.listen(Session, 'after_commit', cls._session_committed)
event.listen(Session, 'before_attach', cls._session_attached)
Expand Down

0 comments on commit 39e6442

Please sign in to comment.