Hosts without an instance dont show up at Vlan detail
-
Owner
diff --git a/circle/network/views.py b/circle/network/views.py index 26f6d76..081d458 100644 --- a/circle/network/views.py +++ b/circle/network/views.py @@ -656,9 +656,7 @@ class VlanDetail(LoginRequiredMixin, SuperuserRequiredMixin, def get_context_data(self, **kwargs): context = super(VlanDetail, self).get_context_data(**kwargs) - q = Host.objects.filter(interface__in=Interface.objects.filter( - vlan=self.object - )) + q = Host.objects.filter(vlan=self.object) context['host_list'] = SmallHostTable(q) context['vlan_vid'] = self.kwargs.get('vid')
-
Owner
self.object.host_set
-
-
Status changed to closed by commit fa1d82
Toggle commit list
Please
register
or
sign in
to comment