1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
This commit is contained in:
jeremystretch
2023-03-20 15:57:08 -04:00
parent ecb8f1599d
commit 9ce29f9edc
4 changed files with 12 additions and 5 deletions

View File

@@ -280,7 +280,7 @@ class ManufacturerViewSet(NetBoxModelViewSet):
#
class DeviceTypeViewSet(NetBoxModelViewSet):
queryset = DeviceType.objects.prefetch_related('manufacturer', 'tags').annotate(
queryset = DeviceType.objects.prefetch_related('manufacturer', 'default_platform', 'tags').annotate(
device_count=count_related(Device, 'device_type')
)
serializer_class = serializers.DeviceTypeSerializer