summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/build/orm/collections.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/orm/collections.rst b/doc/build/orm/collections.rst
index 4ef6b0724..7f585fc50 100644
--- a/doc/build/orm/collections.rst
+++ b/doc/build/orm/collections.rst
@@ -352,8 +352,8 @@ rare cases::
@collection.internally_instrumented
def __delitem__(self, key, _sa_initiator=None):
- # do something with key, value
- super(MyMappedCollection, self).__delitem__(key, value, _sa_initiator)
+ # do something with key
+ super(MyMappedCollection, self).__delitem__(key, _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