#16429: Allow refresh of path choices for FilePathField
-------------------------------------+-------------------------------------
Reporter: Daniel Swarbrick | Owner: James
| Walters
Type: New feature | Status: assigned
Component: Forms | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Old description:
> As noted by a couple of people on django-users, FilePathField does not
> automatically refresh choices if files are add to or removed from the
> path being pointed to (http://groups.google.com/group/django-
> users/browse_thread/thread/6778fa138b848996 and
> http://groups.google.com/group/django-
> users/browse_thread/thread/403d872cf9433905).
>
> A nice addition to FilePathField would be the ability to control how long
> the choices are cached for, ranging from "never cached" to "cached
> forever" (or at least for the lifetime of the webserver process).
New description:
As noted by a couple of people on django-users, FilePathField does not
automatically refresh choices if files are add to or removed from the path
being pointed to (http://groups.google.com/group/django-
users/browse_thread/thread/6778fa138b848996 and
http://groups.google.com/group/django-
users/browse_thread/thread/403d872cf9433905).
A nice addition to FilePathField would be the ability to refresh the path
choices on a per-request basis.
--
Comment (by Natalia Bidart):
After [https://github.com/django/django/pull/17416#issuecomment-1855854814
these comment in the PR], I'm re-titling this ticket accordingly to adjust
scope and allow for a more pragmatic yet useful solution.
--
Ticket URL: <https://code.djangoproject.com/ticket/16429#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018c697cf0f4-5218fe21-c928-472b-9cd1-f7486ef7b27c-000000%40eu-central-1.amazonses.com.