summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/events.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/orm/events.py')
-rw-r--r--lib/sqlalchemy/orm/events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/events.py b/lib/sqlalchemy/orm/events.py
index 9ea0dd834..4d888a350 100644
--- a/lib/sqlalchemy/orm/events.py
+++ b/lib/sqlalchemy/orm/events.py
@@ -1479,8 +1479,9 @@ class AttributeEvents(event.Events):
@staticmethod
def _set_dispatch(cls, dispatch_cls):
- event.Events._set_dispatch(cls, dispatch_cls)
+ dispatch = event.Events._set_dispatch(cls, dispatch_cls)
dispatch_cls._active_history = False
+ return dispatch
@classmethod
def _accept_with(cls, target):