Re: form_for_model and default values

2007-02-07 Thread HenrikG
On 11 Jan, 04:07, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > 2) I have a model with aUserfield so what I do (on the view) is the > following: > > Entry.fields['autor'].widget = forms.HiddenInput() > > if request.user.is_authenticated(): > Entry.fields['autor'].initial = (

form_for_model and default values

2007-01-10 Thread [EMAIL PROTECTED]
Hi everybody, I'm newbie at django but I think is awesome. I use newforms and I had two questions: 1) I have a model with a FileField so everything at the admin interface works fine, but when I get the form using form_for_model the widget isn't a FileInput(). Is this the right behaviour? or it's

form_for_model and default values

2007-01-09 Thread Rodrigo Lazo
Hi everybody, I'm newbie at django but I think is awesome. I use newforms and I had two questions: 1) I have a model with a FileField so everything at the admin interface works fine, but when I get the form using form_for_model the widget isn't a FileInput(). Is this the right behaviour? or it's