mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #20649 -- Allowed blank field display to be defined in the initial list of choices.
This commit is contained in:
@@ -105,6 +105,11 @@ Minor features
|
||||
<django.contrib.auth.forms.AuthenticationForm.confirm_login_allowed>` method
|
||||
to more easily customize the login policy.
|
||||
|
||||
* :attr:`Field.choices<django.db.models.Field.choices>` now allows you to
|
||||
customize the "empty choice" label by including a tuple with an empty string
|
||||
or ``None`` for the key and the custom label as the value. The default blank
|
||||
option ``"----------"`` will be omitted in this case.
|
||||
|
||||
Backwards incompatible changes in 1.7
|
||||
=====================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user