mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-14 15:52:18 -06:00
19380 call configure on embedded tables (#19390)
* 19380 call configure on embedded tables * 19380 call configure on embedded tables * 19380 call configure on embedded tables
This commit is contained in:
@@ -350,6 +350,7 @@ class ClusterRemoveDevicesView(generic.ObjectEditView):
|
||||
|
||||
selected_objects = Device.objects.filter(pk__in=form.initial['pk'])
|
||||
device_table = DeviceTable(list(selected_objects), orderable=False)
|
||||
device_table.configure(request)
|
||||
|
||||
return render(request, self.template_name, {
|
||||
'form': form,
|
||||
@@ -505,6 +506,7 @@ class VMInterfaceView(generic.ObjectView):
|
||||
exclude=('virtual_machine',),
|
||||
orderable=False
|
||||
)
|
||||
child_interfaces_tables.configure(request)
|
||||
|
||||
# Get VLAN translation rules
|
||||
vlan_translation_table = None
|
||||
@@ -513,6 +515,7 @@ class VMInterfaceView(generic.ObjectView):
|
||||
data=instance.vlan_translation_policy.rules.all(),
|
||||
orderable=False
|
||||
)
|
||||
vlan_translation_table.configure(request)
|
||||
|
||||
# Get assigned VLANs and annotate whether each is tagged or untagged
|
||||
vlans = []
|
||||
@@ -527,6 +530,7 @@ class VMInterfaceView(generic.ObjectView):
|
||||
data=vlans,
|
||||
orderable=False
|
||||
)
|
||||
vlan_table.configure(request)
|
||||
|
||||
return {
|
||||
'child_interfaces_table': child_interfaces_tables,
|
||||
|
||||
Reference in New Issue
Block a user