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 because the feature isn't really implemented yet. 2) I have a model with a User field 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 = (request.user.id, request.user.username) So the field doesn't appears but the user is selected initialy. When the system process the form I get (Hidden field autor) Enter a list of values. I though that using initial and setting it to the current user will do the trick to *automatically* fill the user field... but I've done some wrong I guess. Any help? Best regards -- Rodrigo Lazo (rlazo) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---