diff options
| author | TildaDares <mathildaudufo@gmail.com> | 2026-03-29 22:02:10 +0100 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-04-29 14:52:25 -0400 |
| commit | 3f912ee4189602b4df121c0dc0428673fda5c253 (patch) | |
| tree | f696c3609f6de8520932a662c88f4918b5fba7fb /docs/releases/6.1.txt | |
| parent | 60a9c70496e5d7b971928ce3da5b47c8836a4def (diff) | |
Fixed #16429 -- Extracted set_choices() method from FilePathField.__init__().
Diffstat (limited to 'docs/releases/6.1.txt')
| -rw-r--r-- | docs/releases/6.1.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/releases/6.1.txt b/docs/releases/6.1.txt index b4b4e60082..3da0c6546f 100644 --- a/docs/releases/6.1.txt +++ b/docs/releases/6.1.txt @@ -258,6 +258,12 @@ Forms :setting:`USE_BLANK_CHOICE_DASH` allows you to revert back to the old default label. +* :class:`~django.forms.FilePathField` now provides a + :meth:`~django.forms.FilePathField.set_choices` method to scan the + directory at :attr:`~django.forms.FilePathField.path` and refresh the + field's choices. This allows per-request refreshing when called in a form's + ``__init__()``. + Generic Views ~~~~~~~~~~~~~ |
