On May 12, 2:00 pm, Miguel <migue...@gmail.com> wrote: > in case of errors in the form, in which objects are sent back the fields > which are already filled? > > Miguel > Sent from Madrid, Spain
Your original post didn't make clear that you're not using the Django forms library. If you were - and really, I highly recommend you do - then it would happen automatically. In your code, you're not passing anything back into the template context that could be used to populate the fields. If you really want to do this manually, then you'll need to pass your new_data dictionary back to the template, and fill the fields individually using this. But this is all a lot of unnecessary work. -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---