summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/event
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-02-25 16:55:42 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-02-25 16:55:42 -0500
commite60529da797491e9e88e9fcc581334ad3a09bcc2 (patch)
tree70ec4d5c0ca9037b125d15252eb9e8630096b91a /lib/sqlalchemy/event
parent1122d355d15a8f6b8565df282eeb3463c31a512d (diff)
downloadsqlalchemy-e60529da797491e9e88e9fcc581334ad3a09bcc2.tar.gz
- Fixed bug where events set to listen at the class
level (e.g. on the :class:`.Mapper` or :class:`.ClassManager` level, as opposed to on an individual mapped class, and also on :class:`.Connection`) that also made use of internal argument conversion (which is most within those categories) would fail to be removable. fixes #2973
Diffstat (limited to 'lib/sqlalchemy/event')
-rw-r--r--lib/sqlalchemy/event/attr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/event/attr.py b/lib/sqlalchemy/event/attr.py
index a3a0d48dc..8bb458330 100644
--- a/lib/sqlalchemy/event/attr.py
+++ b/lib/sqlalchemy/event/attr.py
@@ -135,7 +135,7 @@ class _DispatchDescriptor(RefCollection):
cls = stack.pop(0)
stack.extend(cls.__subclasses__())
if cls in self._clslevel:
- self._clslevel[cls].remove(event_key.fn)
+ self._clslevel[cls].remove(event_key._listen_fn)
registry._removed_from_collection(event_key, self)
def clear(self):