mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Added return value to Signal.disconnect().
This commit is contained in:
parent
937fab030d
commit
23f1a8dad2
3 changed files with 21 additions and 3 deletions
|
@ -278,7 +278,12 @@ Disconnecting signals
|
|||
.. method:: Signal.disconnect([receiver=None, sender=None, weak=True, dispatch_uid=None])
|
||||
|
||||
To disconnect a receiver from a signal, call :meth:`Signal.disconnect`. The
|
||||
arguments are as described in :meth:`.Signal.connect`.
|
||||
arguments are as described in :meth:`.Signal.connect`. The method returns
|
||||
``True`` if a receiver was disconnected and ``False`` if not.
|
||||
|
||||
The *receiver* argument indicates the registered receiver to disconnect. It may
|
||||
be ``None`` if ``dispatch_uid`` is used to identify the receiver.
|
||||
The ``receiver`` argument indicates the registered receiver to disconnect. It
|
||||
may be ``None`` if ``dispatch_uid`` is used to identify the receiver.
|
||||
|
||||
.. versionchanged:: 1.8
|
||||
|
||||
The boolean return value was added.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue