1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Tag should use a stock manager by default

This commit is contained in:
Jeremy Stretch
2020-06-16 16:57:32 -04:00
parent b318bde76c
commit 4ae05dddeb
7 changed files with 13 additions and 12 deletions

View File

@ -108,7 +108,7 @@ class ExportTemplateViewSet(ModelViewSet):
#
class TagViewSet(ModelViewSet):
queryset = Tag.objects.annotate(
queryset = Tag.restricted.annotate(
tagged_items=Count('extras_taggeditem_items', distinct=True)
)
serializer_class = serializers.TagSerializer