Re: Form errors manipulation - autofill values in case of error

2009-05-13 Thread Daniel Roseman
On May 13, 12:47 pm, Miguel wrote: > the problem I have is that the fields are dynamic so I can not do any model > from a form django object... > > Miguel > Sent from Madrid, Spain > This doesn't follow. Forms don't have to be based on models, and it's perfectly possible to do a dynamic form. Al

Re: Form errors manipulation - autofill values in case of error

2009-05-13 Thread Thierry
I was able to get the user input back if there are errors but I have a customized form class which extends the UserCreationForm. I was following the example at: http://www.djangobook.com/en/2.0/chapter14/#cn176 You will notice that if the user inputs are not valid, the view re- initialize the f

Re: Form errors manipulation - autofill values in case of error

2009-05-13 Thread Miguel
the problem I have is that the fields are dynamic so I can not do any model from a form django object... Miguel Sent from Madrid, Spain On Wed, May 13, 2009 at 1:27 PM, Miguel wrote: > ignorance, I guess. Django is a really huge framework and I am new using > it.:-s > > Where can I find documen

Re: Form errors manipulation - autofill values in case of error

2009-05-13 Thread Miguel
ignorance, I guess. Django is a really huge framework and I am new using it.:-s Where can I find documentation about how python handle this? Miguel Sent from Madrid, Spain On Wed, May 13, 2009 at 1:24 PM, Daniel Roseman < roseman.dan...@googlemail.com> wrote: > > On May 13, 11:59 am, Miguel

Re: Form errors manipulation - autofill values in case of error

2009-05-13 Thread Daniel Roseman
On May 13, 11:59 am, Miguel wrote: > I want to generate the following info in my html: > > > > To do that I proccess the info as follows: > >                                         Peso (kg) >                                         {% ifequal fila.__str__ > metodo.get_unidad_series %} >      

Form errors manipulation - autofill values in case of error

2009-05-13 Thread Miguel
I want to generate the following info in my html: To do that I proccess the info as follows: Peso (kg) {% ifequal fila.__str__ metodo.get_unidad_series %} {% for serie in