-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Added caution block under delete_empty to warn the developer when he try to activate delete_empty for collections of compound forms #7767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
b9e375c
ca04555
de25ede
52c0a94
ce30e47
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -275,12 +275,12 @@ the empty values will be kept. | |
|
||
.. caution:: | ||
|
||
The ``delete_empty`` option will only remove items when the normalized | ||
value is null. If your `type`_ is a compound form type, you need to have | ||
the ``required`` option set to false or ``empty_data`` option explicitly | ||
set to null, both these options can be set inside `options`_. To | ||
understand why this is necessary, see form | ||
:ref:`empty_data <reference-form-option-empty-data>`. | ||
The ``delete_empty`` option only removes items when the normalized value is | ||
``null``. If your `type`_ is a compound form type, you must either set the | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then we should be even more explicit it here, before 2.8 If the nested `type`_ is a compound form type WDYT? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 sounds good to me There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually |
||
``required`` option to ``false`` or set the ``empty_data`` option to ``null``. | ||
Both of these options can be set inside `options`_. See | ||
:ref:`form's empty_data option <reference-form-option-empty-data>` to learn | ||
why this is necessary. | ||
|
||
options | ||
~~~~~~~ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are two spaces before "value"