1<form method="POST">
2 {% csrf_token %}
3 {{ form }}
4 <input type="hidden" name="next" value="{{ request.path }}">
5 <button type="submit">Let's Go</button>
6</form>
7
1from django.http import HttpResponseRedirect
2
3
4return HttpResponseRedirect(request.path_info)
5