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:
Arthur Hanson
2025-05-05 06:29:32 -07:00
committed by GitHub
parent 6e49cee718
commit 88f7b6508c
7 changed files with 27 additions and 0 deletions

View File

@@ -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,