mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #13181 -- Added support for callable choices to forms.ChoiceField
Thanks vanschelven and expleo for the initial patch.
This commit is contained in:
committed by
Tim Graham
parent
e0685368c6
commit
74e1980cf9
@@ -240,6 +240,9 @@ Forms
|
||||
will also update ``UploadedFile.content_type`` with the image's content type
|
||||
as determined by Pillow.
|
||||
|
||||
* You can now pass a callable that returns an iterable of choices when
|
||||
instantiating a :class:`~django.forms.ChoiceField`.
|
||||
|
||||
Generic Views
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user