mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-18 15:34:36 +01:00
Base manager for Tag should use RestrictedQuerySet
This commit is contained in:
@@ -108,7 +108,7 @@ class ExportTemplateViewSet(ModelViewSet):
|
||||
#
|
||||
|
||||
class TagViewSet(ModelViewSet):
|
||||
queryset = Tag.restricted.annotate(
|
||||
queryset = Tag.objects.annotate(
|
||||
tagged_items=Count('extras_taggeditem_items', distinct=True)
|
||||
)
|
||||
serializer_class = serializers.TagSerializer
|
||||
|
||||
Reference in New Issue
Block a user