Implement bulk imports and edits for SLM models (#46)

Partially implements #4
Based on @erichester76's https://github.com/ICTU/netbox_slm/pull/44

Signed-off-by: wkoot <[email protected]>
Co-authored-by: Eric Hester <[email protected]>
This commit is contained in:
wkootandEric Hester authored and GitHub committed 2024-10-14 13:41:22 +02:00
1 parent 3539539c4e
commit a0a98bb407
12 files changed
+141 -10

No files matched your search

@@ -38,3 +38,9 @@ class SoftwareProductVersionDeleteView(generic.ObjectDeleteView):
class SoftwareProductVersionBulkDeleteView(generic.BulkDeleteView):
queryset = SoftwareProductVersion.objects.all()
table = tables.SoftwareProductVersionTable
class SoftwareProductVersionBulkImportView(generic.BulkImportView):
queryset = SoftwareProductVersion.objects.all()
table = tables.SoftwareProductVersionTable
model_form = forms.SoftwareProductVersionBulkImportForm