Re: form_for_model + FileField issue

2007-06-12 Thread Vincent Nijs
Malcolm, I wasn't very clear in my question. Sorry about that. It took a bit of trial and error but I found a hack that works the way I want it to. I use the model and form_for_model/form_for_instance for all fields except the file uploads. For the file uploads I use FileInput(). That was what I

Re: form_for_model + FileField issue

2007-06-12 Thread Malcolm Tredinnick
On Tue, 2007-06-12 at 20:03 -0500, Vincent Nijs wrote: > Thanks for the reply Malcolm. > > That is too bad. I noticed that the FileFields do have a browse button in > the admin form btw. Do they not use form_for_model? > > As an alternative, is there a way to use FileField 's separately from the

Re: form_for_model + FileField issue

2007-06-12 Thread Vincent Nijs
Thanks for the reply Malcolm. That is too bad. I noticed that the FileFields do have a browse button in the admin form btw. Do they not use form_for_model? As an alternative, is there a way to use FileField 's separately from the the form_for_model fields? I am thinking I could leave the FileFie

Re: form_for_model + FileField issue

2007-06-12 Thread Malcolm Tredinnick
On Tue, 2007-06-12 at 18:50 -0500, Vincent Nijs wrote: > Hi, > > I have a form linked to a model. I am using form_for_model or > form_for_instance as required. > > The only issue is that FileField fields are not displayed with a 'browse' > button. The function I am using is given below. > > I k

form_for_model + FileField issue

2007-06-12 Thread Vincent Nijs
Hi, I have a form linked to a model. I am using form_for_model or form_for_instance as required. The only issue is that FileField fields are not displayed with a 'browse' button. The function I am using is given below. I know from the documentation that model fields get converted to form fields