mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #34140 -- Applied rst code-block to non-Python examples.
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for reviews.
This commit is contained in:
committed by
Mariusz Felisiak
parent
7bb741d787
commit
534ac48297
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user