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:
@ -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 [
|
||||
|
Reference in New Issue
Block a user