Re: Context-sensitive 'upload_to' parameter for FileField

2007-01-20 Thread Jay Parlar
On 1/19/07, Patrick J. Anderson <[EMAIL PROTECTED]> wrote: > > Hi, I was wondering if it is possible, and if so then how, to have a > context-sensitive 'upload_to' parameter set for FileField. > > Let's say, I have the following model concept: > > class MyModel(mode

Context-sensitive 'upload_to' parameter for FileField

2007-01-19 Thread Patrick J. Anderson
Hi, I was wondering if it is possible, and if so then how, to have a context-sensitive 'upload_to' parameter set for FileField. Let's say, I have the following model concept: class MyModel(models.Model): folder = models.CharField(maxlength = 8) file_html = models.FileField