Fixes #2303: Always redirect to parent object when bulk editing/deleting components

This commit is contained in:
Jeremy Stretch
2018-08-06 14:14:40 -04:00
parent bbc1cdf364
commit 86902a44ee
3 changed files with 5 additions and 5 deletions

View File

@@ -553,7 +553,7 @@
</button>
{% endif %}
{% if interfaces and perms.dcim.delete_interface %}
<button type="submit" name="_delete" formaction="{% url 'dcim:interface_bulk_delete' pk=device.pk %}" class="btn btn-danger btn-xs">
<button type="submit" name="_delete" formaction="{% url 'dcim:interface_bulk_delete' pk=device.pk %}?return_url={{ device.get_absolute_url }}" class="btn btn-danger btn-xs">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> Delete
</button>
{% endif %}