This problem was raised at least twice [1] [2] back in 2009 on django-
users, and neither post was answered.

If FilePathField is used declaratively for a form's field(s), it does
not get called for each instantiation of that form - only the first
time the form is used. Consequently, the choices may show files that
have since been deleted, and fail to show files that have since been
added to the directory. One of the users who raised this issue wrote
that he has to reload his server... to get updated files to show.

Should the docs perhaps reflect this, and maybe advise people to
dynamically add FilePathFields to their form.__init__() if they want
them to always be minty fresh?

Or can we perhaps even add an option to FilePathField that would
refresh the choices each time? I'm not entirely sure how that would
work... proxy function maybe?

[1]: 
http://groups.google.com/group/django-users/browse_thread/thread/6778fa138b848996
[2]: 
http://groups.google.com/group/django-users/browse_thread/thread/403d872cf9433905

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to