Add a 'next' hidden field to allow form to store redirection url

This commit is contained in:
Roberto Rosario
2011-05-01 04:27:24 -04:00
parent 488bb7bd02
commit b61de3d001

View File

@@ -30,6 +30,10 @@
{% if submit_method != "GET" and submit_method != "get" %}
{% csrf_token %}
{% endif %}
{% if next %}
<input name="next" type="hidden" value="{{ next }}" />
{% endif %}
{% for hidden_field in hidden_fields %}
{{ hidden_field.as_hidden }}