mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-23 03:58:45 -06:00
Closes #17752: Rename URL paths for bulk import to *_bulk_import
This commit is contained in:
@@ -80,7 +80,7 @@ class TenantGroupDeleteView(generic.ObjectDeleteView):
|
||||
queryset = TenantGroup.objects.all()
|
||||
|
||||
|
||||
@register_model_view(TenantGroup, 'import', detail=False)
|
||||
@register_model_view(TenantGroup, 'bulk_import', detail=False)
|
||||
class TenantGroupBulkImportView(generic.BulkImportView):
|
||||
queryset = TenantGroup.objects.all()
|
||||
model_form = forms.TenantGroupImportForm
|
||||
@@ -147,7 +147,7 @@ class TenantDeleteView(generic.ObjectDeleteView):
|
||||
queryset = Tenant.objects.all()
|
||||
|
||||
|
||||
@register_model_view(Tenant, 'import', detail=False)
|
||||
@register_model_view(Tenant, 'bulk_import', detail=False)
|
||||
class TenantBulkImportView(generic.BulkImportView):
|
||||
queryset = Tenant.objects.all()
|
||||
model_form = forms.TenantImportForm
|
||||
@@ -215,7 +215,7 @@ class ContactGroupDeleteView(generic.ObjectDeleteView):
|
||||
queryset = ContactGroup.objects.all()
|
||||
|
||||
|
||||
@register_model_view(ContactGroup, 'import', detail=False)
|
||||
@register_model_view(ContactGroup, 'bulk_import', detail=False)
|
||||
class ContactGroupBulkImportView(generic.BulkImportView):
|
||||
queryset = ContactGroup.objects.all()
|
||||
model_form = forms.ContactGroupImportForm
|
||||
@@ -282,7 +282,7 @@ class ContactRoleDeleteView(generic.ObjectDeleteView):
|
||||
queryset = ContactRole.objects.all()
|
||||
|
||||
|
||||
@register_model_view(ContactRole, 'import', detail=False)
|
||||
@register_model_view(ContactRole, 'bulk_import', detail=False)
|
||||
class ContactRoleBulkImportView(generic.BulkImportView):
|
||||
queryset = ContactRole.objects.all()
|
||||
model_form = forms.ContactRoleImportForm
|
||||
@@ -334,7 +334,7 @@ class ContactDeleteView(generic.ObjectDeleteView):
|
||||
queryset = Contact.objects.all()
|
||||
|
||||
|
||||
@register_model_view(Contact, 'import', detail=False)
|
||||
@register_model_view(Contact, 'bulk_import', detail=False)
|
||||
class ContactBulkImportView(generic.BulkImportView):
|
||||
queryset = Contact.objects.all()
|
||||
model_form = forms.ContactImportForm
|
||||
@@ -370,8 +370,8 @@ class ContactAssignmentListView(generic.ObjectListView):
|
||||
filterset_form = forms.ContactAssignmentFilterForm
|
||||
table = tables.ContactAssignmentTable
|
||||
actions = {
|
||||
'import': {'add'},
|
||||
'export': {'view'},
|
||||
'bulk_import': {'add'},
|
||||
'bulk_edit': {'change'},
|
||||
'bulk_delete': {'delete'},
|
||||
}
|
||||
@@ -397,7 +397,7 @@ class ContactAssignmentEditView(generic.ObjectEditView):
|
||||
}
|
||||
|
||||
|
||||
@register_model_view(ContactAssignment, 'import', detail=False)
|
||||
@register_model_view(ContactAssignment, 'bulk_import', detail=False)
|
||||
class ContactAssignmentBulkImportView(generic.BulkImportView):
|
||||
queryset = ContactAssignment.objects.all()
|
||||
model_form = forms.ContactAssignmentImportForm
|
||||
|
||||
Reference in New Issue
Block a user