Skip to content

Commit 0622125

Browse files
committed
use code block
1 parent 04b8e24 commit 0622125

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/extra.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Lets link two widgets via a *dependent_fields* dictionary. The key
3737
represents the name of the field in the form. The value represents the
3838
name of the field in the model (used in `queryset`).
3939

40-
.. code:: python
40+
.. code-block:: python
4141
:emphasize-lines: 17
4242
4343
class AddressForm(forms.Form):
@@ -71,7 +71,7 @@ select2 depending of his selection in another one.
7171

7272
Customize the form in a manner:
7373

74-
.. code:: python
74+
.. code-block:: python
7575
:emphasize-lines: 7
7676
7777
class AddressForm(forms.Form):
@@ -112,7 +112,7 @@ which differs from widget field name `city`.
112112
Furthermore you may want to filter options on two or more select2
113113
selections (some code is dropped for clarity):
114114

115-
.. code:: python
115+
.. code-block:: python
116116
:emphasize-lines: 14
117117
118118
class SomeForm(forms.Form):

0 commit comments

Comments
 (0)