Re: Adding fields to form in form.clean()

2008-06-25 Thread Thomas Guettler
Hi Malcolm and others, my first to create a child form failed, because motherform.cleaned_data does not exist, if a validation error occurred. Now I populate the childform during motherform.clean() and it works. Thank you very much for all your great work Malcolm! Thomas Malcolm Tredinnick

Re: Adding fields to form in form.clean()

2008-06-25 Thread Malcolm Tredinnick
On Wed, 2008-06-25 at 09:27 +0200, Thomas Guettler wrote: > Hi, > > depending on the values from form.cleaned_data, I want to present different > input fields to the user. Example: > The user chooses a country, and after submit (no ajax), the > cities of this country should be in a drop down

Re: Adding fields to form in form.clean()

2008-06-25 Thread Gregor Müllegger
Maybe you could use django's form wizard: http://www.djangoproject.com/documentation/form_wizard/ On Jun 25, 9:27 am, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Hi, > > depending on the values from form.cleaned_data, I want to present different > input fields to the user. Example: > The user