From 03859d72877b77e39afd3998d255b0ad8a177404 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 17 Jan 2017 14:52:39 -0500 Subject: [PATCH] Closes #803: Clarify that no child objects are deleted when deleting a prefix --- netbox/ipam/views.py | 1 + netbox/templates/ipam/prefix_delete.html | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 netbox/templates/ipam/prefix_delete.html diff --git a/netbox/ipam/views.py b/netbox/ipam/views.py index 3e62142aee0..3f991a7bc07 100644 --- a/netbox/ipam/views.py +++ b/netbox/ipam/views.py @@ -444,6 +444,7 @@ class PrefixDeleteView(PermissionRequiredMixin, ObjectDeleteView): permission_required = 'ipam.delete_prefix' model = Prefix redirect_url = 'ipam:prefix_list' + template_name = 'ipam/prefix_delete.html' class PrefixBulkImportView(PermissionRequiredMixin, BulkImportView): diff --git a/netbox/templates/ipam/prefix_delete.html b/netbox/templates/ipam/prefix_delete.html new file mode 100644 index 00000000000..5ea39dc4c98 --- /dev/null +++ b/netbox/templates/ipam/prefix_delete.html @@ -0,0 +1,5 @@ +{% extends 'utilities/obj_delete.html' %} + +{% block message_extra %} +

Note: This will not delete any child prefixes or IP addresses.

+{% endblock %}