1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Obsoleted ComponentEditView and ComponentDeleteView

This commit is contained in:
Jeremy Stretch
2017-12-15 15:57:49 -05:00
parent 67a30fdf91
commit 153409d37e
5 changed files with 45 additions and 54 deletions

View File

@@ -802,20 +802,6 @@ class ComponentCreateView(View):
})
class ComponentEditView(ObjectEditView):
parent_field = None
def get_return_url(self, request, obj):
return getattr(obj, self.parent_field).get_absolute_url()
class ComponentDeleteView(ObjectDeleteView):
parent_field = None
def get_return_url(self, request, obj):
return getattr(obj, self.parent_field).get_absolute_url()
class BulkComponentCreateView(View):
"""
Add one or more components (e.g. interfaces, console ports, etc.) to a set of Devices or VirtualMachines.