From 3f912ee4189602b4df121c0dc0428673fda5c253 Mon Sep 17 00:00:00 2001 From: TildaDares Date: Sun, 29 Mar 2026 22:02:10 +0100 Subject: Fixed #16429 -- Extracted set_choices() method from FilePathField.__init__(). --- docs/releases/6.1.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/releases/6.1.txt') 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 ~~~~~~~~~~~~~ -- cgit v1.3