On 2/10/07, daev <[EMAIL PROTECTED]> wrote:
>
> On Feb 9, 10:12 pm, "Tipan" <[EMAIL PROTECTED]> wrote:
>
> >                 else:
> >                     form=UserAccountForm()
> >             return render_to_response('account.html',{'form':form})
> somthing like this:
> form = UserAccountForm( user.__dict__ )

you would probably want to pass it as `initial` kwarg, when you pass
it like this, it will get validated, which is not always what you
want... for example if the form has more requirements than your model,
the form would render itself with errors even when displayed for the
first time.

>
>
> >
>


-- 
Honza Kr�l
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to