Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6631665

Browse filesBrowse files
committed
fixup @xabbuh's comment proper choice type trim file
1 parent 8bfa059 commit 6631665
Copy full SHA for 6631665

File tree

Expand file treeCollapse file tree

8 files changed

+27
-14
lines changed
Filter options
Expand file treeCollapse file tree

8 files changed

+27
-14
lines changed

‎reference/forms/types/choice.rst

Copy file name to clipboardExpand all lines: reference/forms/types/choice.rst
+2-8Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To use this field, you must specify *either* ``choices`` or ``choice_loader`` op
3030
| Overridden | - `compound`_ |
3131
| options | - `empty_data`_ |
3232
| | - `error_bubbling`_ |
33-
| | - `trim`_ |
33+
| | - `choice_type_trim`_ |
3434
+-------------+------------------------------------------------------------------------------+
3535
| Inherited | - `attr`_ |
3636
| options | - `by_reference`_ |
@@ -324,13 +324,7 @@ error_bubbling
324324
Set that error on this field must be attached to the field instead of
325325
the parent field (the form in most cases).
326326

327-
trim
328-
~~~~
329-
330-
**type**: ``boolean`` **default**: ``false``
331-
332-
Trimming is disabled by default because the selected value or values must match
333-
the given choice values exactly (and they could contain white spaces).
327+
.. include:: /reference/forms/types/options/choice_type_trim.rst.inc
334328

335329
Inherited Options
336330
-----------------

‎reference/forms/types/country.rst

Copy file name to clipboardExpand all lines: reference/forms/types/country.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ you should just use the ``choice`` type directly.
3333
| | - `multiple`_ |
3434
| | - `placeholder`_ |
3535
| | - `preferred_choices`_ |
36-
| | - `trim`_ |
36+
| | - `choice_type_trim`_ |
3737
| | |
3838
| | from the :doc:`form </reference/forms/types/form>` type |
3939
| | |
@@ -81,6 +81,8 @@ type:
8181

8282
.. include:: /reference/forms/types/options/preferred_choices.rst.inc
8383

84+
.. include:: /reference/forms/types/options/choice_type_trim.rst.inc
85+
8486
These options inherit from the :doc:`form </reference/forms/types/form>`
8587
type:
8688

‎reference/forms/types/currency.rst

Copy file name to clipboardExpand all lines: reference/forms/types/currency.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ you should just use the ``choice`` type directly.
2626
| | - `multiple`_ |
2727
| | - `placeholder`_ |
2828
| | - `preferred_choices`_ |
29-
| | - `trim`_ |
29+
| | - `choice_type_trim`_ |
3030
| | |
3131
| | from the :doc:`form </reference/forms/types/form>` type |
3232
| | |
@@ -71,6 +71,8 @@ type:
7171

7272
.. include:: /reference/forms/types/options/preferred_choices.rst.inc
7373

74+
.. include:: /reference/forms/types/options/choice_type_trim.rst.inc
75+
7476
These options inherit from the :doc:`form</reference/forms/types/form>`
7577
type:
7678

‎reference/forms/types/entity.rst

Copy file name to clipboardExpand all lines: reference/forms/types/entity.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ objects from the database.
3232
| | - `placeholder`_ |
3333
| | - `preferred_choices`_ |
3434
| | - `translation_domain`_ |
35-
| | - `trim`_ |
35+
| | - `choice_type_trim`_ |
3636
| | |
3737
| | from the :doc:`form </reference/forms/types/form>` type: |
3838
| | |
@@ -265,6 +265,8 @@ type:
265265

266266
.. include:: /reference/forms/types/options/choice_type_translation_domain.rst.inc
267267

268+
.. include:: /reference/forms/types/options/choice_type_trim.rst.inc
269+
268270
These options inherit from the :doc:`form </reference/forms/types/form>`
269271
type:
270272

‎reference/forms/types/language.rst

Copy file name to clipboardExpand all lines: reference/forms/types/language.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ you should just use the ``choice`` type directly.
3535
| | - `multiple`_ |
3636
| | - `placeholder`_ |
3737
| | - `preferred_choices`_ |
38-
| | - `trim`_ |
38+
| | - `choice_type_trim`_ |
3939
| | |
4040
| | from the :doc:`form </reference/forms/types/form>` type |
4141
| | |
@@ -83,6 +83,8 @@ type:
8383

8484
.. include:: /reference/forms/types/options/preferred_choices.rst.inc
8585

86+
.. include:: /reference/forms/types/options/choice_type_trim.rst.inc
87+
8688
These options inherit from the :doc:`form </reference/forms/types/form>`
8789
type:
8890

‎reference/forms/types/locale.rst

Copy file name to clipboardExpand all lines: reference/forms/types/locale.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ you should just use the ``choice`` type directly.
3636
| | - `multiple`_ |
3737
| | - `placeholder`_ |
3838
| | - `preferred_choices`_ |
39-
| | - `trim`_ |
39+
| | - `choice_type_trim`_ |
4040
| | |
4141
| | from the :doc:`form </reference/forms/types/form>` type |
4242
| | |
@@ -84,6 +84,8 @@ type:
8484

8585
.. include:: /reference/forms/types/options/preferred_choices.rst.inc
8686

87+
.. include:: /reference/forms/types/options/choice_type_trim.rst.inc
88+
8789
These options inherit from the :doc:`form </reference/forms/types/form>`
8890
type:
8991

+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
trim
2+
~~~~
3+
4+
**type**: ``boolean`` **default**: ``false``
5+
6+
Trimming is disabled by default because the selected value or values must match
7+
the given choice values exactly (and they could contain white spaces).

‎reference/forms/types/timezone.rst

Copy file name to clipboardExpand all lines: reference/forms/types/timezone.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ you should just use the ``choice`` type directly.
2727
| | - `multiple`_ |
2828
| | - `placeholder`_ |
2929
| | - `preferred_choices`_ |
30-
| | - `trim`_ |
30+
| | - `choice_type_trim`_ |
3131
| | |
3232
| | from the :doc:`form </reference/forms/types/form>` type |
3333
| | |
@@ -73,6 +73,8 @@ type:
7373

7474
.. include:: /reference/forms/types/options/preferred_choices.rst.inc
7575

76+
.. include:: /reference/forms/types/options/choice_type_trim.rst.inc
77+
7678
These options inherit from the :doc:`form </reference/forms/types/form>`
7779
type:
7880

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.