We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4285390 commit e086668Copy full SHA for e086668
netbox_floorplan/views.py
@@ -130,10 +130,10 @@ def get(self, request):
130
fp_instance = models.Floorplan.objects.get(pk=fp_id)
131
if fp_instance.record_type == "site":
132
self.queryset = Device.objects.all().filter(~Q(id__in=fp_instance.mapped_devices)).filter(
133
- site=fp_instance.site.id).order_by("name")
+ site=fp_instance.site.id, rack=None).order_by("name")
134
else:
135
136
- location=fp_instance.location.id).order_by("name")
+ location=fp_instance.location.id, rack=None).order_by("name")
137
return super().get(request)
138
139
0 commit comments