Explorar o código

18904 add tags to config context table (#18938)

* 18904 add tags to config context table

* 18904 tag to correct table
Arthur Hanson hai 10 meses
pai
achega
bd8e00a935
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      netbox/extras/tables/tables.py

+ 4 - 1
netbox/extras/tables/tables.py

@@ -498,13 +498,16 @@ class ConfigContextTable(NetBoxTable):
         orderable=False,
         orderable=False,
         verbose_name=_('Synced')
         verbose_name=_('Synced')
     )
     )
+    tags = columns.TagColumn(
+        url_name='extras:configcontext_list'
+    )
 
 
     class Meta(NetBoxTable.Meta):
     class Meta(NetBoxTable.Meta):
         model = ConfigContext
         model = ConfigContext
         fields = (
         fields = (
             'pk', 'id', 'name', 'weight', 'is_active', 'is_synced', 'description', 'regions', 'sites', 'locations',
             'pk', 'id', 'name', 'weight', 'is_active', 'is_synced', 'description', 'regions', 'sites', 'locations',
             'roles', 'platforms', 'cluster_types', 'cluster_groups', 'clusters', 'tenant_groups', 'tenants',
             'roles', 'platforms', 'cluster_types', 'cluster_groups', 'clusters', 'tenant_groups', 'tenants',
-            'data_source', 'data_file', 'data_synced', 'created', 'last_updated',
+            'data_source', 'data_file', 'data_synced', 'tags', 'created', 'last_updated',
         )
         )
         default_columns = ('pk', 'name', 'weight', 'is_active', 'is_synced', 'description')
         default_columns = ('pk', 'name', 'weight', 'is_active', 'is_synced', 'description')