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 = (
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
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
3 matches
Mail list logo