summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
authorElif T. Kus <elifkus@gmail.com>2016-01-03 12:56:22 +0200
committerTim Graham <timograham@gmail.com>2016-01-22 12:18:24 -0500
commit5dceb1f07807d76f163ce1929e9f1dc1b2da6289 (patch)
tree21057f127c428fd95dc35badefd67560a3d2c100 /docs/ref/models
parent647ce33e86807bcc75977a34871e1ee08230d9a5 (diff)
[1.9.x] Fixed #26020 -- Normalized header stylings in docs.
Backport of bca9faae95db2a92e540fbd08505c134639916fe from master
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/database-functions.txt18
-rw-r--r--docs/ref/models/lookups.txt8
-rw-r--r--docs/ref/models/meta.txt4
-rw-r--r--docs/ref/models/relations.txt2
4 files changed, 16 insertions, 16 deletions
diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt
index dd0bd59379..b76ccb425f 100644
--- a/docs/ref/models/database-functions.txt
+++ b/docs/ref/models/database-functions.txt
@@ -26,7 +26,7 @@ allows the field to have two "empty values", but it's important for the
``Coalesce`` example below.
Coalesce
---------
+========
.. class:: Coalesce(*expressions, **extra)
@@ -67,7 +67,7 @@ Usage examples::
>>> Coalesce('updated', now_sql)
Concat
-------
+======
.. class:: Concat(*expressions, **extra)
@@ -94,7 +94,7 @@ Usage example::
Margaret Smith (Maggie)
Greatest
---------
+========
.. class:: Greatest(*expressions, **extra)
@@ -138,7 +138,7 @@ and ``comment.modified``.
a sensible minimum value to provide as a default.
Least
------
+=====
.. class:: Least(*expressions, **extra)
@@ -162,7 +162,7 @@ will result in a database error.
a sensible maximum value to provide as a default.
Length
-------
+======
.. class:: Length(expression, **extra)
@@ -193,7 +193,7 @@ It can also be registered as a transform. For example::
The ability to register the function as a transform was added.
Lower
-------
+=====
.. class:: Lower(expression, **extra)
@@ -215,7 +215,7 @@ Usage example::
The ability to register the function as a transform was added.
Now
----
+===
.. class:: Now()
@@ -238,7 +238,7 @@ Usage example::
timestamp, use :class:`django.contrib.postgres.functions.TransactionNow`.
Substr
-------
+======
.. class:: Substr(expression, pos, length=None, **extra)
@@ -257,7 +257,7 @@ Usage example::
marga
Upper
-------
+=====
.. class:: Upper(expression, **extra)
diff --git a/docs/ref/models/lookups.txt b/docs/ref/models/lookups.txt
index 58e6e35bbf..54ec332e92 100644
--- a/docs/ref/models/lookups.txt
+++ b/docs/ref/models/lookups.txt
@@ -31,7 +31,7 @@ A lookup expression consists of three parts:
.. _lookup-registration-api:
Registration API
-~~~~~~~~~~~~~~~~
+================
Django uses :class:`~lookups.RegisterLookupMixin` to give a class the interface to
register lookups on itself. The two prominent examples are
@@ -75,7 +75,7 @@ follow this API.
.. _query-expression:
The Query Expression API
-~~~~~~~~~~~~~~~~~~~~~~~~
+========================
The query expression API is a common set of methods that classes define to be
usable in query expressions to translate themselves into SQL expressions. Direct
@@ -118,7 +118,7 @@ following methods:
be a :class:`~django.db.models.Field` instance.
Transform reference
-~~~~~~~~~~~~~~~~~~~
+===================
.. class:: Transform
@@ -165,7 +165,7 @@ Transform reference
its ``lhs.output_field``.
Lookup reference
-~~~~~~~~~~~~~~~~
+================
.. class:: Lookup
diff --git a/docs/ref/models/meta.txt b/docs/ref/models/meta.txt
index e92cd9b971..b0868d341c 100644
--- a/docs/ref/models/meta.txt
+++ b/docs/ref/models/meta.txt
@@ -33,7 +33,7 @@ Field access API
================
Retrieving a single field instance of a model by name
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+-----------------------------------------------------
.. method:: Options.get_field(field_name)
@@ -83,7 +83,7 @@ Retrieving a single field instance of a model by name
attribute after calling ``get_field()``.
Retrieving all field instances of a model
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+-----------------------------------------
.. method:: Options.get_fields(include_parents=True, include_hidden=False)
diff --git a/docs/ref/models/relations.txt b/docs/ref/models/relations.txt
index 1cec3e87c0..faa268daef 100644
--- a/docs/ref/models/relations.txt
+++ b/docs/ref/models/relations.txt
@@ -180,7 +180,7 @@ Related objects reference
.. _direct-assignment:
Direct Assignment
------------------
+=================
A related object set can be replaced in bulk with one operation by assigning a
new iterable of objects to it::