From 645afb3dc106a3cc7ca3c3c2ac48ca96873cbd45 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 8 Aug 2018 15:22:26 -0400 Subject: [PATCH] Fixes #2336: Bulk deleting power outlets and console server ports from a device redirects to home page --- netbox/templates/dcim/device.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 62b54f361..c84bdf9a3 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -573,7 +573,7 @@ {% endif %} {% if cs_ports or device.device_type.is_console_server %} {% if perms.dcim.delete_consoleserverport %} -
+ {% csrf_token %} {% endif %}
@@ -606,12 +606,12 @@ - {% endif %} {% if cs_ports and perms.dcim.delete_consoleserverport %} - {% endif %} @@ -631,7 +631,7 @@ {% endif %} {% if power_outlets or device.device_type.is_pdu %} {% if perms.dcim.delete_poweroutlet %} - + {% csrf_token %} {% endif %}
@@ -664,12 +664,12 @@ - {% endif %} {% if power_outlets and perms.dcim.delete_poweroutlet %} - {% endif %}