diff options
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/database-functions.txt | 18 | ||||
| -rw-r--r-- | docs/ref/models/lookups.txt | 8 | ||||
| -rw-r--r-- | docs/ref/models/meta.txt | 4 | ||||
| -rw-r--r-- | docs/ref/models/relations.txt | 2 |
4 files changed, 16 insertions, 16 deletions
diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt index fc3f25dd29..abf5218437 100644 --- a/docs/ref/models/database-functions.txt +++ b/docs/ref/models/database-functions.txt @@ -24,7 +24,7 @@ allows the field to have two "empty values", but it's important for the ``Coalesce`` example below. Coalesce --------- +======== .. class:: Coalesce(*expressions, **extra) @@ -65,7 +65,7 @@ Usage examples:: >>> Coalesce('updated', now_sql) Concat ------- +====== .. class:: Concat(*expressions, **extra) @@ -92,7 +92,7 @@ Usage example:: Margaret Smith (Maggie) Greatest --------- +======== .. class:: Greatest(*expressions, **extra) @@ -136,7 +136,7 @@ and ``comment.modified``. a sensible minimum value to provide as a default. Least ------ +===== .. class:: Least(*expressions, **extra) @@ -160,7 +160,7 @@ will result in a database error. a sensible maximum value to provide as a default. Length ------- +====== .. class:: Length(expression, **extra) @@ -191,7 +191,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) @@ -213,7 +213,7 @@ Usage example:: The ability to register the function as a transform was added. Now ---- +=== .. class:: Now() @@ -236,7 +236,7 @@ Usage example:: timestamp, use :class:`django.contrib.postgres.functions.TransactionNow`. Substr ------- +====== .. class:: Substr(expression, pos, length=None, **extra) @@ -255,7 +255,7 @@ Usage example:: marga Upper ------- +===== .. class:: Upper(expression, **extra) diff --git a/docs/ref/models/lookups.txt b/docs/ref/models/lookups.txt index eae0d2a5b3..0ac2d75ee5 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 @@ -163,7 +163,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 1a28c4b741..dfb58b5e78 100644 --- a/docs/ref/models/meta.txt +++ b/docs/ref/models/meta.txt @@ -24,7 +24,7 @@ Field access API ================ Retrieving a single field instance of a model by name -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +----------------------------------------------------- .. method:: Options.get_field(field_name) @@ -62,7 +62,7 @@ Retrieving a single field instance of a model by name FieldDoesNotExist: User has no field named 'does_not_exist' 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 e7ab608354..2014eb9b43 100644 --- a/docs/ref/models/relations.txt +++ b/docs/ref/models/relations.txt @@ -178,7 +178,7 @@ Related objects reference related manager's methods are disabled. Direct Assignment ------------------ +================= A related object set can be replaced in bulk with one operation by assigning a new iterable of objects to it:: |
