1
0
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:
Jeremy Stretch
2020-06-16 16:40:16 -04:00
parent c7aa0a2321
commit b318bde76c

View File

@ -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: