Re: File upload in newforms

2007-02-08 Thread [EMAIL PROTECTED]
Any progress on FileFields and form_for_model in newforms? Just waiting for this to make the switch to newforms. On 21 Jan, 19:30, "Adrian Holovaty" <[EMAIL PROTECTED]> wrote: > On 1/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > It seems like the difference for me anyway is that even

Re: File upload in newforms

2007-01-21 Thread [EMAIL PROTECTED]
I hope it didn't sound like I was complaining. I am just learning my way around django and was just trying to clear up what's going on. Adding the FileInput widget seems to generate the right stuff in the html for the form, but I'm not sure when the file would be saved by newforms when newforms IS

Re: File upload in newforms

2007-01-21 Thread Adrian Holovaty
On 1/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > It seems like the difference for me anyway is that even with the > widget, new forms doesn't actually save the file that is uploaded on > the server. > This used to happen in manipulator.save() in the old forms. > > So I have it working fi

Re: File upload in newforms

2007-01-17 Thread [EMAIL PROTECTED]
It seems like the difference for me anyway is that even with the widget, new forms doesn't actually save the file that is uploaded on the server. This used to happen in manipulator.save() in the old forms. So I have it working fine if I save the data myself. Is this how it is supposed to be in n

Re: File upload in newforms

2007-01-15 Thread telenieko
I had the same impression also until I saw your post :) (Didn't even know there was a File widget hehe). At least there's a patch that will allow setting a widget= parameter on the model giving a hand to form_for_model! Cheers, Marc. On 1/15/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: On 1

Re: File upload in newforms

2007-01-14 Thread Adrian Holovaty
On 1/14/07, telenieko <[EMAIL PROTECTED]> wrote: Already saw the change on Trac, but as I said there, shouldn't "form_for_model" set this widget automagically for File and Image Fields ? that would be nice ;) Hi Marc, Yes, FileFields are one of the many things that form_for_model() does not y

Re: File upload in newforms

2007-01-14 Thread telenieko
Hi Adrian, Already saw the change on Trac, but as I said there, shouldn't "form_for_model" set this widget automagically for File and Image Fields ? that would be nice ;) Cheers, Marc. On 1/13/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: On 1/11/07, Sergey Kirillov <[EMAIL PROTECTED]> wrote

Re: File upload in newforms

2007-01-13 Thread Adrian Holovaty
On 1/11/07, Sergey Kirillov <[EMAIL PROTECTED]> wrote: > I'm missing something or there is no file upload support in newforms? Use the FileInput widget to use . Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this m

Re: File upload in newforms

2007-01-13 Thread telenieko
Hi again, Could not find a ticket about that so I opened one, #3297 Cheers, Marc. On 1/11/07, Sergey Kirillov <[EMAIL PROTECTED]> wrote: > > > I'm missing something or there is no file upload support in newforms? > > > > > --~--~-~--~~-