Browse files

Fixed #1815 -- Fixed ReST errors in docs. Thanks,

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
adrianholovaty committed May 9, 2006
1 parent 8eecb95 commit 4b69ef637a4b621b162a6ec05751cf5f30643fb1
Showing with 12 additions and 8 deletions.
  1. +1 −1 docs/db-api.txt
  2. +2 −0 docs/generic_views.txt
  3. +7 −5 docs/model-api.txt
  4. +1 −1 docs/request_response.txt
  5. +1 −1 docs/tutorial01.txt
@@ -1070,7 +1070,7 @@ Lookups that span relationships
Django offers a powerful and intuitive way to "follow" relationships in
-lookups, taking care of the SQL ``JOIN``s for you automatically, behind the
+lookups, taking care of the SQL ``JOIN``\s for you automatically, behind the
scenes. To span a relationship, just use the field name of related fields
across models, separated by double underscores, until you get to the field you
@@ -62,6 +62,8 @@ Most generic views require the ``queryset`` key, which is a ``QuerySet``
instance; see the `database API docs`_ for more information about ``Queryset``
+.. _database API docs:
"Simple" generic views
@@ -52,7 +52,7 @@ Some technical notes:
* The name of the table, ``myapp_person``, is automatically derived from
some model metadata but can be overridden. See _`Table names` below.
* An ``id`` field is added automatically, but this behavior can be
- overriden. See _`Automatic primary key fields` below.
+ overriden. See `Automatic primary key fields`_ below.
* The ``CREATE TABLE`` SQL in this example is formatted using PostgreSQL
syntax, but it's worth noting Django uses SQL tailored to the database
backend specified in your `settings file`_.
@@ -124,7 +124,7 @@ Here are all available field types:
An ``IntegerField`` that automatically increments according to available IDs.
You usually won't need to use this directly; a primary key field will
automatically be added to your model if you don't specify otherwise. See
-_`Automatic primary key fields`.
+`Automatic primary key fields`_.
@@ -1111,7 +1111,7 @@ If ``fields`` isn't given, Django will default to displaying each field that
isn't an ``AutoField`` and has ``editable=True``, in a single fieldset, in
the same order as the fields are defined in the model.
-The ``field_options`` dictionary can have the following keys::
+The ``field_options`` dictionary can have the following keys:
@@ -1312,6 +1312,8 @@ The way ``Manager`` classes work is documented in the `Retrieving objects`_
section of the database API docs, but this section specifically touches on
model options that customize ``Manager`` behavior.
+.. _Retrieving objects:
Manager names
@@ -1401,11 +1403,11 @@ example, using this model::
...the statement ``Book.objects.all()`` will return all books in the database.
-You can override a ``Manager``'s base ``QuerySet`` by overriding the
+You can override a ``Manager``\'s base ``QuerySet`` by overriding the
``Manager.get_query_set()`` method. ``get_query_set()`` should return a
``QuerySet`` with the properties you require.
-For example, the following model has *two* ``Manager``s -- one that returns
+For example, the following model has *two* ``Manager``\s -- one that returns
all objects, and one that returns only the books by Roald Dahl::
# First, define the Manager subclass.
@@ -102,7 +102,7 @@ All attributes except ``session`` should be considered read-only.
``AuthenticationMiddleware`` activated. For more, see
`Authentication in Web requests`_.
- .. Authentication in Web requests:
+ .. _Authentication in Web requests:
A readable-and-writable, dictionary-like object that represents the current
@@ -69,7 +69,7 @@ These files are:
* ````: The URL declarations for this Django project; a "table of
contents" of your Django-powered site.
-.. _more on packages:
+.. _more about packages:
The development server

0 comments on commit 4b69ef6

Please sign in to comment.