mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
#4416: Add individual delete views for organizational objects
This commit is contained in:
@@ -122,6 +122,10 @@ class RegionEditView(ObjectEditView):
|
||||
model_form = forms.RegionForm
|
||||
|
||||
|
||||
class RegionDeleteView(ObjectDeleteView):
|
||||
queryset = Region.objects.all()
|
||||
|
||||
|
||||
class RegionBulkImportView(BulkImportView):
|
||||
queryset = Region.objects.all()
|
||||
model_form = forms.RegionCSVForm
|
||||
@@ -223,6 +227,10 @@ class RackGroupEditView(ObjectEditView):
|
||||
model_form = forms.RackGroupForm
|
||||
|
||||
|
||||
class RackGroupDeleteView(ObjectDeleteView):
|
||||
queryset = RackGroup.objects.all()
|
||||
|
||||
|
||||
class RackGroupBulkImportView(BulkImportView):
|
||||
queryset = RackGroup.objects.all()
|
||||
model_form = forms.RackGroupCSVForm
|
||||
@@ -249,6 +257,10 @@ class RackRoleEditView(ObjectEditView):
|
||||
model_form = forms.RackRoleForm
|
||||
|
||||
|
||||
class RackRoleDeleteView(ObjectDeleteView):
|
||||
queryset = RackRole.objects.all()
|
||||
|
||||
|
||||
class RackRoleBulkImportView(BulkImportView):
|
||||
queryset = RackRole.objects.all()
|
||||
model_form = forms.RackRoleCSVForm
|
||||
@@ -462,6 +474,10 @@ class ManufacturerEditView(ObjectEditView):
|
||||
model_form = forms.ManufacturerForm
|
||||
|
||||
|
||||
class ManufacturerDeleteView(ObjectDeleteView):
|
||||
queryset = Manufacturer.objects.all()
|
||||
|
||||
|
||||
class ManufacturerBulkImportView(BulkImportView):
|
||||
queryset = Manufacturer.objects.all()
|
||||
model_form = forms.ManufacturerCSVForm
|
||||
@@ -860,6 +876,10 @@ class DeviceRoleEditView(ObjectEditView):
|
||||
model_form = forms.DeviceRoleForm
|
||||
|
||||
|
||||
class DeviceRoleDeleteView(ObjectDeleteView):
|
||||
queryset = DeviceRole.objects.all()
|
||||
|
||||
|
||||
class DeviceRoleBulkImportView(BulkImportView):
|
||||
queryset = DeviceRole.objects.all()
|
||||
model_form = forms.DeviceRoleCSVForm
|
||||
@@ -885,6 +905,10 @@ class PlatformEditView(ObjectEditView):
|
||||
model_form = forms.PlatformForm
|
||||
|
||||
|
||||
class PlatformDeleteView(ObjectDeleteView):
|
||||
queryset = Platform.objects.all()
|
||||
|
||||
|
||||
class PlatformBulkImportView(BulkImportView):
|
||||
queryset = Platform.objects.all()
|
||||
model_form = forms.PlatformCSVForm
|
||||
|
||||
Reference in New Issue
Block a user