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

Merge pull request #1782 from digitalocean/99-virtual-chassis

Virtual Chassis Support
This commit is contained in:
Jeremy Stretch
2017-12-18 17:09:53 -05:00
committed by GitHub
21 changed files with 959 additions and 104 deletions

View File

@@ -803,20 +803,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.