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

@ -585,7 +585,7 @@ class TagFilterField(forms.MultipleChoiceField):
def __init__(self, model, *args, **kwargs):
def get_choices():
tags = model.tags.all().unrestricted().annotate(
tags = model.tags.annotate(
count=Count('extras_taggeditem_items')
).order_by('name')
return [