summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-11-04 10:46:01 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-11-04 10:46:30 +0100
commit6fc689a22d2d8bc84b2c407132af5d2cb2cf0673 (patch)
tree38d8686cd288cc5d0a0d6b709c86a7e5fd6a6b7a /docs/topics
parent2877d26448f872cf7f6b7b9168e138f730acad87 (diff)
[4.0.x] Corrected multiply defined labels in docs.
Backport of 60503cc747eeda7c61bab02b71f8f55a733a6eea from main
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/signals.txt8
-rw-r--r--docs/topics/templates.txt4
2 files changed, 5 insertions, 7 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.
diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt
index 4b00028e45..59658c66e9 100644
--- a/docs/topics/templates.txt
+++ b/docs/topics/templates.txt
@@ -261,11 +261,11 @@ backend with different options. In that case you should define a unique
:setting:`OPTIONS <TEMPLATES-OPTIONS>` contains backend-specific settings.
+.. _template-loading:
+
Usage
-----
-.. _template-loading:
-
.. module:: django.template.loader
The ``django.template.loader`` module defines two functions to load templates.