mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 03:46:25 -06:00
Tweaked ordering of tags list
This commit is contained in:
parent
f1a4c49e3f
commit
0c575e88d7
@ -121,7 +121,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'))
|
tags = model.tags.annotate(count=Count('taggit_taggeditem_items')).order_by('-count', 'name')
|
||||||
else:
|
else:
|
||||||
tags = None
|
tags = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user