Re: FilePathField and stale choices

2011-07-07 Thread Daniel Swarbrick
On Jul 7, 1:04 am, Luke Plant wrote: > That sounds like a reasonable idea to me, since doing it by default > could impose a serious performance hit. In it's most naive form (i.e. > making the 'choices' attribute a lazy list using > django.utils.functional.lazy) this

Re: FilePathField and stale choices

2011-07-06 Thread Luke Plant
On 06/07/11 21:41, Daniel Swarbrick wrote: > 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? That sounds like a reasonable idea to me, since doing it by default could impose a