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