mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-29 05:42:09 +02:00
Restore tagged item count to Tag attributes panel
This commit is contained in:
@@ -425,6 +425,11 @@ class TagPanel(panels.ObjectAttributesPanel):
|
||||
description = attrs.TextAttr('description')
|
||||
color = attrs.ColorAttr('color')
|
||||
weight = attrs.NumericAttr('weight')
|
||||
tagged_items = attrs.TemplatedAttr(
|
||||
'extras_taggeditem_items',
|
||||
label=_('Tagged Items'),
|
||||
template_name='extras/tag/attrs/tagged_item_count.html',
|
||||
)
|
||||
|
||||
|
||||
class TagObjectTypesPanel(panels.ObjectPanel):
|
||||
|
||||
1
netbox/templates/extras/tag/attrs/tagged_item_count.html
Normal file
1
netbox/templates/extras/tag/attrs/tagged_item_count.html
Normal file
@@ -0,0 +1 @@
|
||||
{{ value.count }}
|
||||
Reference in New Issue
Block a user