Skip to content

Commit

Permalink
Closes netbox-community#803: Clarify that no child objects are delete…
Browse files Browse the repository at this point in the history
…d when deleting a prefix
  • Loading branch information
jeremystretch committed Jan 17, 2017
1 parent a37525b commit fa576b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions netbox/ipam/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
5 changes: 5 additions & 0 deletions netbox/templates/ipam/prefix_delete.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends 'utilities/obj_delete.html' %}

{% block message_extra %}
<p>Note: This will <strong>not</strong> delete any child prefixes or IP addresses.</p>
{% endblock %}

0 comments on commit fa576b8

Please sign in to comment.