瀏覽代碼

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

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
bctiemann 4 月之前
父節點
當前提交
3df0bc8e62
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      netbox/netbox/api/viewsets/mixins.py

+ 1 - 1
netbox/netbox/api/viewsets/mixins.py

@@ -389,7 +389,7 @@ class BulkDestroyModelMixin:
                         'errors': {
                             '__all__': _(
                                 'Unable to delete: {n} dependent object(s) prevent deletion.'
-                            ).format(n=n),
+                            ).format(n=len(protected)),
                         },
                     })
             if errors: