summaryrefslogtreecommitdiff
path: root/docs/ref/contrib/postgres/forms.txt
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2023-02-09 16:48:46 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-10 21:12:06 +0100
commitb784768eef75afb32f6d2ce7166551a528bce0ec (patch)
treea375a57a50f1766538ea8a62ec49bda352d7f2b9 /docs/ref/contrib/postgres/forms.txt
parent4a89aa25c91e520c247aee428782274dcf10ffd0 (diff)
[4.2.x] Refs #34140 -- Applied rst code-block to non-Python examples.
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for reviews. Backport of 534ac4829764f317cf2fbc4a18354fcc998c1425 from main.
Diffstat (limited to 'docs/ref/contrib/postgres/forms.txt')
-rw-r--r--docs/ref/contrib/postgres/forms.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/ref/contrib/postgres/forms.txt b/docs/ref/contrib/postgres/forms.txt
index 8f9dd449d1..95d705277b 100644
--- a/docs/ref/contrib/postgres/forms.txt
+++ b/docs/ref/contrib/postgres/forms.txt
@@ -23,7 +23,9 @@ Fields
It specifies the underlying form field for the array. This is not used
to render any HTML, but it is used to process the submitted data and
- validate it. For example::
+ validate it. For example:
+
+ .. code-block:: pycon
>>> from django import forms
>>> from django.contrib.postgres.forms import SimpleArrayField
@@ -45,7 +47,9 @@ Fields
This is an optional argument which defaults to a comma: ``,``. This
value is used to split the submitted data. It allows you to chain
- ``SimpleArrayField`` for multidimensional data::
+ ``SimpleArrayField`` for multidimensional data:
+
+ .. code-block:: pycon
>>> from django import forms
>>> from django.contrib.postgres.forms import SimpleArrayField