[4.1.x] Fixed #33909 -- Corrected django.dispatch.receiver() signature.
Backport of 0cbbed49f4
from main
This commit is contained in:
parent
c520a5d06e
commit
bee09df39f
|
@ -112,9 +112,11 @@ manual connect route::
|
||||||
|
|
||||||
Alternatively, you can use a :func:`receiver` decorator:
|
Alternatively, you can use a :func:`receiver` decorator:
|
||||||
|
|
||||||
.. function:: receiver(signal)
|
.. function:: receiver(signal, **kwargs)
|
||||||
|
|
||||||
:param signal: A signal or a list of signals to connect a function to.
|
:param signal: A signal or a list of signals to connect a function to.
|
||||||
|
:param kwargs: Wildcard keyword arguments to pass to a
|
||||||
|
:ref:`function <receiver-functions>`.
|
||||||
|
|
||||||
Here's how you connect with the decorator::
|
Here's how you connect with the decorator::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue