Fixes #2937: Redirect to list view after editing an object from list view

This commit is contained in:
Jeremy Stretch
2019-04-08 14:10:55 -04:00
parent 6f8591f769
commit 9a91bdbdb2
7 changed files with 17 additions and 16 deletions

View File

@@ -8,7 +8,7 @@ SECRETROLE_ACTIONS = """
<i class="fa fa-history"></i>
</a>
{% if perms.secrets.change_secretrole %}
<a href="{% url 'secrets:secretrole_edit' slug=record.slug %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
<a href="{% url 'secrets:secretrole_edit' slug=record.slug %}?return_url={{ request.path }}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
{% endif %}
"""