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:
@@ -160,6 +160,10 @@ class RIREditView(ObjectEditView):
|
||||
model_form = forms.RIRForm
|
||||
|
||||
|
||||
class RIRDeleteView(ObjectDeleteView):
|
||||
queryset = RIR.objects.all()
|
||||
|
||||
|
||||
class RIRBulkImportView(BulkImportView):
|
||||
queryset = RIR.objects.all()
|
||||
model_form = forms.RIRCSVForm
|
||||
@@ -290,6 +294,10 @@ class RoleEditView(ObjectEditView):
|
||||
model_form = forms.RoleForm
|
||||
|
||||
|
||||
class RoleDeleteView(ObjectDeleteView):
|
||||
queryset = Role.objects.all()
|
||||
|
||||
|
||||
class RoleBulkImportView(BulkImportView):
|
||||
queryset = Role.objects.all()
|
||||
model_form = forms.RoleCSVForm
|
||||
@@ -653,6 +661,10 @@ class VLANGroupEditView(ObjectEditView):
|
||||
model_form = forms.VLANGroupForm
|
||||
|
||||
|
||||
class VLANGroupDeleteView(ObjectDeleteView):
|
||||
queryset = VLANGroup.objects.all()
|
||||
|
||||
|
||||
class VLANGroupBulkImportView(BulkImportView):
|
||||
queryset = VLANGroup.objects.all()
|
||||
model_form = forms.VLANGroupCSVForm
|
||||
|
Reference in New Issue
Block a user