Просмотр исходного кода

#8274, #10761: Fix content types display in object lists

jeremystretch 3 лет назад
Родитель
Сommit
ec4e2a8e16
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      netbox/extras/tables/tables.py

+ 6 - 6
netbox/extras/tables/tables.py

@@ -69,17 +69,17 @@ class CustomLinkTable(NetBoxTable):
     name = tables.Column(
         linkify=True
     )
-    content_type = columns.ContentTypeColumn()
+    content_types = columns.ContentTypesColumn()
     enabled = columns.BooleanColumn()
     new_window = columns.BooleanColumn()
 
     class Meta(NetBoxTable.Meta):
         model = CustomLink
         fields = (
-            'pk', 'id', 'name', 'content_type', 'enabled', 'link_text', 'link_url', 'weight', 'group_name',
+            'pk', 'id', 'name', 'content_types', 'enabled', 'link_text', 'link_url', 'weight', 'group_name',
             'button_class', 'new_window', 'created', 'last_updated',
         )
-        default_columns = ('pk', 'name', 'content_type', 'enabled', 'group_name', 'button_class', 'new_window')
+        default_columns = ('pk', 'name', 'content_types', 'enabled', 'group_name', 'button_class', 'new_window')
 
 
 #
@@ -90,17 +90,17 @@ class ExportTemplateTable(NetBoxTable):
     name = tables.Column(
         linkify=True
     )
-    content_type = columns.ContentTypeColumn()
+    content_types = columns.ContentTypesColumn()
     as_attachment = columns.BooleanColumn()
 
     class Meta(NetBoxTable.Meta):
         model = ExportTemplate
         fields = (
-            'pk', 'id', 'name', 'content_type', 'description', 'mime_type', 'file_extension', 'as_attachment',
+            'pk', 'id', 'name', 'content_types', 'description', 'mime_type', 'file_extension', 'as_attachment',
             'created', 'last_updated',
         )
         default_columns = (
-            'pk', 'name', 'content_type', 'description', 'mime_type', 'file_extension', 'as_attachment',
+            'pk', 'name', 'content_types', 'description', 'mime_type', 'file_extension', 'as_attachment',
         )