Add a 'next' hidden field to allow form to store redirection url
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user