mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 07:56:44 -06:00
Update netbox/dcim/views.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
parent
e93d237147
commit
6e492f18b5
@ -127,8 +127,7 @@ class BulkDisconnectView(GetReturnURLMixin, ObjectPermissionRequiredMixin, View)
|
||||
for obj in self.queryset.filter(pk__in=form.cleaned_data['pk']):
|
||||
if obj.cable is None:
|
||||
continue
|
||||
if obj.cable.pk not in cables:
|
||||
cables.append(obj.cable.pk)
|
||||
cables.add(obj.cable.pk)
|
||||
count += 1
|
||||
|
||||
if len(cables) > 0:
|
||||
|
Loading…
Reference in New Issue
Block a user