Fixes #1915: Redirect to device view after deleting a component

This commit is contained in:
Jeremy Stretch
2018-02-27 14:59:45 -05:00
parent 970759ed8b
commit 079c8894fa
7 changed files with 7 additions and 7 deletions

View File

@@ -44,7 +44,7 @@
<i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
</button>
{% else %}
<a href="{% url 'dcim:powerport_delete' pk=pp.pk %}" title="Delete port" class="btn btn-danger btn-xs">
<a href="{% url 'dcim:powerport_delete' pk=pp.pk %}?return_url={{ device.get_absolute_url }}" title="Delete port" class="btn btn-danger btn-xs">
<i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
</a>
{% endif %}