summaryrefslogtreecommitdiff
path: root/docs/topics/signals.txt
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-11-04 10:46:01 +0100
committerGitHub <noreply@github.com>2021-11-04 10:46:01 +0100
commit60503cc747eeda7c61bab02b71f8f55a733a6eea (patch)
tree72905d0fef2327c04b729d60263092818295711c /docs/topics/signals.txt
parent95a4db3fbd946dd56f46f4c8c22be3b28083d845 (diff)
downloaddjango-60503cc747eeda7c61bab02b71f8f55a733a6eea.tar.gz
Corrected multiply defined labels in docs.
Diffstat (limited to 'docs/topics/signals.txt')
-rw-r--r--docs/topics/signals.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/topics/signals.txt b/docs/topics/signals.txt
index 4c88c6b25f..f4c6290a14 100644
--- a/docs/topics/signals.txt
+++ b/docs/topics/signals.txt
@@ -87,15 +87,13 @@ function or method::
Notice that the function takes a ``sender`` argument, along with wildcard
keyword arguments (``**kwargs``); all signal handlers must take these arguments.
-We'll look at senders `a bit later`_, but right now look at the ``**kwargs``
-argument. All signals send keyword arguments, and may change those keyword
-arguments at any time. In the case of
+We'll look at senders :ref:`a bit later <connecting-to-specific-signals>`, but
+right now look at the ``**kwargs`` argument. All signals send keyword
+arguments, and may change those keyword arguments at any time. In the case of
:data:`~django.core.signals.request_finished`, it's documented as sending no
arguments, which means we might be tempted to write our signal handling as
``my_callback(sender)``.
-.. _a bit later: `connecting to signals sent by specific senders`_
-
This would be wrong -- in fact, Django will throw an error if you do so. That's
because at any point arguments could get added to the signal and your receiver
must be able to handle those new arguments.