mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fix queryset reference under BulkDeleteView
This commit is contained in:
@ -1006,7 +1006,7 @@ class BulkDeleteView(GetReturnURLMixin, ObjectPermissionRequiredMixin, View):
|
||||
logger.debug("Form validation was successful")
|
||||
|
||||
# Delete objects
|
||||
queryset = model.objects.filter(pk__in=pk_list)
|
||||
queryset = self.queryset.filter(pk__in=pk_list)
|
||||
try:
|
||||
deleted_count = queryset.delete()[1][model._meta.label]
|
||||
except ProtectedError as e:
|
||||
|
Reference in New Issue
Block a user