1
1
2
2
import django_tables2 as tables
3
3
from django .utils .safestring import mark_safe
4
- from django_tables2 .utils import A
4
+ # from django_tables2.utils import A
5
5
6
6
from netbox .tables import NetBoxTable
7
7
from netbox .tables .columns import ChoiceFieldColumn , TagColumn
@@ -25,6 +25,7 @@ class CertificateTable(NetBoxTable):
25
25
tags = TagColumn (
26
26
url_name = 'plugins:netbox_rpki:certificate_list'
27
27
)
28
+
28
29
class Meta (NetBoxTable .Meta ):
29
30
model = netbox_rpki .models .Certificate
30
31
fields = ("pk" , "id" , "name" , "issuer" , "subject" , "serial" , "valid_from" , "valid_to" , "auto_renews" , "publicKey" , "private_key" , "publication_url" , "ca_repository" , "self_hosted" , "rpki_org" , "comments" , "tenant" , "tags" )
@@ -43,7 +44,7 @@ class OrganizationTable(NetBoxTable):
43
44
class Meta (NetBoxTable .Meta ):
44
45
model = netbox_rpki .models .Organization
45
46
fields = ("pk" , "id" , "org_id" , "name" , "parent_rir" , "ext_url" , "comments" , "tenant" , "tags" )
46
- default_columns = ("org_id" , "name" ,"parent_rir" , "ext_url" , "comments" , "tenant" , "tags" )
47
+ default_columns = ("org_id" , "name" , "parent_rir" , "ext_url" , "comments" , "tenant" , "tags" )
47
48
48
49
49
50
class RoaTable (NetBoxTable ):
@@ -104,4 +105,3 @@ class Meta(NetBoxTable.Meta):
104
105
model = netbox_rpki .models .CertificateAsn
105
106
fields = ("pk" , "id" , "asn" , "certificate_name2" , "comments" , "tenant" , "tags" )
106
107
default_columns = ("asn" , "comments" , "tenant" , "tags" )
107
-
0 commit comments