On Jan 30, 1:11 pm, Konstantin S <[email protected]> wrote:
> Hello!
>
> I believe this is a VERY basic question, that already covered
> somewhere in the excellent django docs, but I couldn't find an answer
> and therefor asking for some help.
> In my view I have this request handler:http://dpaste.com/114650/. The
> problem is that after wrong data input (i.e. no data was found) I get
> the same form with previously entered wrong data. How do I get in that
> case just new form without any data in it ?
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.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---