On Fri, Jan 30, 2009 at 9:45 AM, Konstantin <ktechli...@gmail.com> wrote:
> > On Jan 30, 5:18 pm, Daniel Roseman <roseman.dan...@googlemail.com> > wrote:> > > Not certain I fully understand your flow here, but surely if in line > > 10 you just did: > > form = MediaGetForm() > > that would solve your problem? You're passing in the POST dictionary > > each time - if you want a blank form, simply don't pass in the POST. > > Maybe you give me one more tip: how to display error message of > previous wrong input and show new empty form at the same time ? > Are you sure you want to do that? As a user I'd find it very annoying for a web form to be re-displayed with errors telling me what I entered in some field was wrong, without giving me the opportunity to see what it was I had entered. Even if "wrong" just means "does not exist in the DB" I'd like what I'd entered to be re-displayed so I can see whether I made a typo or actually did enter what I thought I had.... Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---