1
0
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:
Alex Couper
2013-07-20 21:49:33 +00:00
committed by Tim Graham
parent a1889397a9
commit 1123f45511
8 changed files with 152 additions and 8 deletions

View File

@@ -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
=====================================