mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #2438: API optimizations for tagged objects
This commit is contained in:
@ -30,6 +30,6 @@ class TenantGroupViewSet(ModelViewSet):
|
||||
#
|
||||
|
||||
class TenantViewSet(CustomFieldModelViewSet):
|
||||
queryset = Tenant.objects.select_related('group')
|
||||
queryset = Tenant.objects.select_related('group').prefetch_related('tags')
|
||||
serializer_class = serializers.TenantSerializer
|
||||
filter_class = filters.TenantFilter
|
||||
|
Reference in New Issue
Block a user