diff options
| author | Youssef <95358038+badziyoussef@users.noreply.github.com> | 2022-08-15 21:46:54 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-08-16 06:57:16 +0200 |
| commit | bee09df39fe0734eb2388a2b3439436796592820 (patch) | |
| tree | 4f78a94f426d0fee16e25e3768d7c310fac06650 /docs | |
| parent | c520a5d06ef17da9e2175be6aa995ff1761ce7f8 (diff) | |
[4.1.x] Fixed #33909 -- Corrected django.dispatch.receiver() signature.
Backport of 0cbbed49f4fbe60ddf9b452b310815708a64cc64 from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/signals.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/topics/signals.txt b/docs/topics/signals.txt index aabce9c990..829bf039df 100644 --- a/docs/topics/signals.txt +++ b/docs/topics/signals.txt @@ -112,9 +112,11 @@ manual connect route:: 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 kwargs: Wildcard keyword arguments to pass to a + :ref:`function <receiver-functions>`. Here's how you connect with the decorator:: |
