Code

Ticket #17240: internal-references.diff

File internal-references.diff, 4.1 KB (added by rabio, 3 years ago)
Line 
1diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt
2index 8474d9e..8dc05c0 100644
3--- a/docs/intro/tutorial01.txt
4+++ b/docs/intro/tutorial01.txt
5@@ -703,10 +703,8 @@ Save these changes and start a new Python interactive shell by running
6 
7 For more information on model relations, see :doc:`Accessing related objects
8 </ref/models/relations>`. For more on how to use double underscores to perform
9-field lookups via the API, see `Field lookups`__. For full details on the
10+field lookups via the API, see :ref:`Field lookups <field-lookups-intro>`. For full details on the
11 database API, see our :doc:`Database API reference </topics/db/queries>`.
12 
13-__ http://docs.djangoproject.com/en/1.2/topics/db/queries/#field-lookups
14-
15 When you're comfortable with the API, read :doc:`part 2 of this tutorial
16 </intro/tutorial02>` to get Django's automatic admin working.
17diff --git a/docs/releases/1.0.1.txt b/docs/releases/1.0.1.txt
18index 780dc53..37142a2 100644
19--- a/docs/releases/1.0.1.txt
20+++ b/docs/releases/1.0.1.txt
21@@ -6,8 +6,9 @@ Welcome to Django 1.0.1!
22 
23 This is the first "bugfix" release in the Django 1.0 series, improving
24 the stability and performance of the Django 1.0 codebase. As such,
25-Django 1.0.1 contains no new features (and, pursuant to `our
26-compatibility policy`_, maintains backwards compatibility with Django
27+Django 1.0.1 contains no new features (and, pursuant to :doc:`our
28+compatibility policy </misc/api-stability/>`, maintains backwards
29+compatibility with Django
30 1.0), but does contain a number of fixes and other
31 improvements. Django 1.0.1 is a recommended upgrade for any
32 development or deployment currently using or targeting Django 1.0.
33@@ -46,8 +47,9 @@ highlights:
34 
35 * A fix to the application of autoescaping for literal strings passed
36   to the ``join`` template filter. Previously, literal strings passed
37-  to ``join`` were automatically escaped, contrary to `the documented
38-  behavior for autoescaping and literal strings`_. Literal strings
39+  to ``join`` were automatically escaped, contrary to :ref:`the
40+  documented behavior for autoescaping and literal strings
41+  <string-literals-and-automatic-escaping>`. Literal strings
42   passed to ``join`` are no longer automatically escaped, meaning you
43   must now manually escape them; this is an incompatibility if you
44   were relying on this bug, but not if you were relying on escaping
45@@ -60,6 +62,4 @@ highlights:
46   documentation, including both corrections to existing documents and
47   expanded and new documentation.
48 
49-.. _our compatibility policy: http://docs.djangoproject.com/en/dev/misc/api-stability/
50 .. _the Subversion log of the 1.0.X branch: http://code.djangoproject.com/log/django/branches/releases/1.0.X
51-.. _the documented behavior for autoescaping and literal strings: http://docs.djangoproject.com/en/dev/topics/templates/#string-literals-and-automatic-escaping
52diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt
53index f907c23..65b2d59 100644
54--- a/docs/topics/db/models.txt
55+++ b/docs/topics/db/models.txt
56@@ -324,11 +324,10 @@ whatever you want. For example::
57     should work; all are optional.
58 
59     For details on accessing backwards-related objects, see the
60-    `Following relationships backward example`_.
61+    :ref:`Following relationships backward example <backwards-related-objects>`.
62 
63     For sample code, see the `Many-to-one relationship model tests`_.
64 
65-    .. _Following relationships backward example: http://docs.djangoproject.com/en/dev/topics/db/queries/#backwards-related-objects
66     .. _Many-to-one relationship model tests: http://code.djangoproject.com/browser/django/trunk/tests/modeltests/many_to_one
67 
68 Many-to-many relationships
69diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt
70index 719fc67..17e5d69 100644
71--- a/docs/topics/templates.txt
72+++ b/docs/topics/templates.txt
73@@ -556,6 +556,8 @@ to any variable that needs escaping. When auto-escaping is on, there's no
74 danger of the :tfilter:`escape` filter *double-escaping* data -- the
75 :tfilter:`escape` filter does not affect auto-escaped variables.
76 
77+.. _string-literals-and-automatic-escaping:
78+
79 String literals and automatic escaping
80 --------------------------------------
81