summaryrefslogtreecommitdiff
path: root/docs/ref/models/database-functions.txt
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-02-01 11:54:26 -0500
committerTim Graham <timograham@gmail.com>2016-02-01 11:54:26 -0500
commita9fbf0735a213109ef4b02e02ff3e458b6a25929 (patch)
treec9ac521f09711d087e1c501b8427bb102d268fed /docs/ref/models/database-functions.txt
parentd7a6086825d4a308955e792f65fdd9b5f714a505 (diff)
[1.9.x] Fixed #26124 -- Added missing code formatting to docs headers.
Backport of a6ef025dfb2a1d1bd23893408eef6d066fb506d9 from master
Diffstat (limited to 'docs/ref/models/database-functions.txt')
-rw-r--r--docs/ref/models/database-functions.txt36
1 files changed, 18 insertions, 18 deletions
diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt
index b76ccb425f..fc3e189de1 100644
--- a/docs/ref/models/database-functions.txt
+++ b/docs/ref/models/database-functions.txt
@@ -25,8 +25,8 @@ We don't usually recommend allowing ``null=True`` for ``CharField`` since this
allows the field to have two "empty values", but it's important for the
``Coalesce`` example below.
-Coalesce
-========
+``Coalesce``
+============
.. class:: Coalesce(*expressions, **extra)
@@ -66,8 +66,8 @@ Usage examples::
>>> now_sql = RawSQL("cast(%s as datetime)", (now,))
>>> Coalesce('updated', now_sql)
-Concat
-======
+``Concat``
+==========
.. class:: Concat(*expressions, **extra)
@@ -93,8 +93,8 @@ Usage example::
>>> print(author.screen_name)
Margaret Smith (Maggie)
-Greatest
-========
+``Greatest``
+============
.. class:: Greatest(*expressions, **extra)
@@ -137,8 +137,8 @@ and ``comment.modified``.
The PostgreSQL behavior can be emulated using ``Coalesce`` if you know
a sensible minimum value to provide as a default.
-Least
-=====
+``Least``
+=========
.. class:: Least(*expressions, **extra)
@@ -161,8 +161,8 @@ will result in a database error.
The PostgreSQL behavior can be emulated using ``Coalesce`` if you know
a sensible maximum value to provide as a default.
-Length
-======
+``Length``
+==========
.. class:: Length(expression, **extra)
@@ -192,8 +192,8 @@ It can also be registered as a transform. For example::
The ability to register the function as a transform was added.
-Lower
-=====
+``Lower``
+=========
.. class:: Lower(expression, **extra)
@@ -214,8 +214,8 @@ Usage example::
The ability to register the function as a transform was added.
-Now
-===
+``Now``
+=======
.. class:: Now()
@@ -237,8 +237,8 @@ Usage example::
``Now()`` uses ``STATEMENT_TIMESTAMP`` instead. If you need the transaction
timestamp, use :class:`django.contrib.postgres.functions.TransactionNow`.
-Substr
-======
+``Substr``
+==========
.. class:: Substr(expression, pos, length=None, **extra)
@@ -256,8 +256,8 @@ Usage example::
>>> print(Author.objects.get(name='Margaret Smith').alias)
marga
-Upper
-=====
+``Upper``
+=========
.. class:: Upper(expression, **extra)