Skip to content

Commit

Permalink
Fixes #6105: Hide checkboxes for VMs under cluster VMs view
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Apr 7, 2021
1 parent 59e185b commit 38b09dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/version-2.11.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

* [#6100](https://github.com/netbox-community/netbox/issues/6100) - Fix VM interfaces table "add interfaces" link
* [#6104](https://github.com/netbox-community/netbox/issues/6104) - Fix location column on racks table
* [#6105](https://github.com/netbox-community/netbox/issues/6105) - Hide checkboxes for VMs under cluster VMs view

---

Expand Down
2 changes: 0 additions & 2 deletions netbox/virtualization/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ class ClusterVirtualMachinesView(generic.ObjectView):
def get_extra_context(self, request, instance):
virtualmachines = VirtualMachine.objects.restrict(request.user, 'view').filter(cluster=instance)
virtualmachines_table = tables.VirtualMachineTable(virtualmachines, orderable=False)
if request.user.has_perm('virtualization.change_cluster'):
virtualmachines_table.columns.show('pk')

return {
'virtualmachines_table': virtualmachines_table,
Expand Down

0 comments on commit 38b09dc

Please sign in to comment.