소스 검색

#14731: Misc cleanup

Jeremy Stretch 1 년 전
부모
커밋
845888c24e
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      netbox/core/plugins.py
  2. 1 1
      netbox/core/tables/plugins.py

+ 0 - 1
netbox/core/plugins.py

@@ -155,7 +155,6 @@ def get_catalog_plugins():
 
 
             # Populate author (if any)
             # Populate author (if any)
             if data['author']:
             if data['author']:
-                print(data['author'])
                 author = PluginAuthor(
                 author = PluginAuthor(
                     name=data['author']['name'],
                     name=data['author']['name'],
                     org_id=data['author']['org_id'],
                     org_id=data['author']['org_id'],

+ 1 - 1
netbox/core/tables/plugins.py

@@ -44,7 +44,7 @@ class CatalogPluginTable(BaseTable):
         verbose_name=_('Name')
         verbose_name=_('Name')
     )
     )
     author = tables.Column(
     author = tables.Column(
-        accessor=tables.A('author.name'),
+        accessor=tables.A('author__name'),
         verbose_name=_('Author')
         verbose_name=_('Author')
     )
     )
     is_local = columns.BooleanColumn(
     is_local = columns.BooleanColumn(