Skip to content

Commit 3be19dc

Browse files
committed
Refs #35870 -- Moved deprecated notice at the bottom for USE_BLANK_CHOICE_DASH.
Also expended a bit on details for the setting so readers know what is it about.
1 parent 9551424 commit 3be19dc

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

docs/ref/settings.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3186,12 +3186,18 @@ the correct environment.
31863186
------------------------------------
31873187

31883188
.. versionadded:: 6.1
3189-
.. deprecated:: 6.1
31903189

31913190
Default: ``False``
31923191

3193-
Set this transitional setting to ``True`` to revert back to the old default
3194-
blank choice label in forms.
3192+
The default blank choice label in ``Select`` widgets was changed from
3193+
``"---------"`` to ``django.db.models.fields.BLANK_CHOICE_LABEL``. Set this
3194+
transitional setting to ``True`` to revert to the previous label.
3195+
3196+
.. deprecated:: 6.1
3197+
3198+
This setting will be removed in Django 7.0. To use a custom default blank
3199+
choice label, override ``django.db.models.fields.BLANK_CHOICE_LABEL`` in
3200+
the app's ``ready()`` method.
31953201

31963202
.. setting:: USE_I18N
31973203

0 commit comments

Comments
 (0)