A
A
Anton2015-12-05 19:25:14
Django
Anton, 2015-12-05 19:25:14

Django: How to clear a form after a request?

The button <input type="reset" />handles clearing before the form is submitted. And how to clear the form by clicking on it after the request? GET in my case.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kazmiruk, 2015-12-05
@Gambetto

return HttpResponseRedirect(request.path) at the end of the form processing execution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question