Update netbox/netbox/api/viewsets/mixins.py

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
bctiemann 2026-07-14 22:13:05 -04:00 committed by GitHub
parent 3df0bc8e62
commit 63984e693c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -378,7 +378,6 @@ class BulkDestroyModelMixin:
protected = list(
e.protected_objects if isinstance(e, ProtectedError) else e.restricted_objects
)
n = len(protected)
# Report only the count, not names or PKs, to keep each per-object error
# entry small in a batch response. Note: the single-object delete endpoint
# (NetBoxModelViewSet.dispatch()) does include names and PKs of dependent