mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 17:08:41 -06:00
Order tags by name only, not item count
This commit is contained in:
parent
864d49f54d
commit
0c4495eb39
@ -130,7 +130,7 @@ class ObjectListView(View):
|
|||||||
|
|
||||||
# Construct queryset for tags list
|
# Construct queryset for tags list
|
||||||
if hasattr(model, 'tags'):
|
if hasattr(model, 'tags'):
|
||||||
tags = model.tags.annotate(count=Count('taggit_taggeditem_items')).order_by('-count', 'name')
|
tags = model.tags.annotate(count=Count('taggit_taggeditem_items')).order_by('name')
|
||||||
else:
|
else:
|
||||||
tags = None
|
tags = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user