1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Update templates to use "object" context var

This commit is contained in:
Jeremy Stretch
2020-11-19 12:24:52 -05:00
parent 3e7cf416f1
commit d5d87e0fdd
27 changed files with 611 additions and 611 deletions

View File

@@ -106,7 +106,7 @@ class ClusterView(generic.ObjectView):
device_table.columns.show('pk')
return render(request, 'virtualization/cluster.html', {
'cluster': cluster,
'object': cluster,
'device_table': device_table,
})
@@ -262,7 +262,7 @@ class VirtualMachineView(generic.ObjectView):
secrets = Secret.objects.restrict(request.user, 'view').filter(virtual_machine=virtualmachine)
return render(request, 'virtualization/virtualmachine.html', {
'virtualmachine': virtualmachine,
'object': virtualmachine,
'vminterface_table': vminterface_table,
'services': services,
'secrets': secrets,
@@ -343,7 +343,7 @@ class VMInterfaceView(generic.ObjectView):
)
return render(request, 'virtualization/vminterface.html', {
'vminterface': vminterface,
'object': vminterface,
'ipaddress_table': ipaddress_table,
'vlan_table': vlan_table,
})