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

Base manager for Tag should use RestrictedQuerySet

This commit is contained in:
Jeremy Stretch
2020-06-29 14:57:29 -04:00
parent 66703d8963
commit 36498c9dd2
3 changed files with 9 additions and 10 deletions

View File

@ -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