From 5e6e7546bdcce4b9f89724c46a454b84e74a4014 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 9 Sep 2010 20:07:05 -0400 Subject: [PATCH] typo --- doc/build/orm/collections.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/build/orm/collections.rst b/doc/build/orm/collections.rst index 131adb70be..4ef6b07245 100644 --- a/doc/build/orm/collections.rst +++ b/doc/build/orm/collections.rst @@ -348,12 +348,12 @@ rare cases:: @collection.internally_instrumented def __setitem__(self, key, value, _sa_initiator=None): # do something with key, value - super(MappedCollection, self).__setitem__(key, value, _sa_initiator) + super(MyMappedCollection, self).__setitem__(key, value, _sa_initiator) @collection.internally_instrumented def __delitem__(self, key, _sa_initiator=None): # do something with key, value - super(MappedCollection, self).__delitem__(key, value, _sa_initiator) + super(MyMappedCollection, self).__delitem__(key, value, _sa_initiator) The ORM understands the ``dict`` interface just like lists and sets, and will automatically instrument all dict-like methods if you choose to subclass -- 2.47.2