Fixes #4: Include filter params when redirecting user after bulk edit/delete

This commit is contained in:
Jeremy Stretch
2016-04-25 15:39:35 -04:00
parent bb6d3d44f8
commit 8e11a3d624
18 changed files with 64 additions and 35 deletions

View File

@@ -5,6 +5,9 @@
<h1>{% block title %}{% endblock %}</h1>
<form action="." method="post" class="form form-horizontal">
{% csrf_token %}
{% if request.POST.redirect_url %}
<input type="hidden" name="redirect_url" value="{{ request.POST.redirect_url }}" />
{% endif %}
{% for hidden in form.hidden_fields %}
{{ hidden }}
{% endfor %}