Commit e1682851 by Karsa Zoltán István

set template_name property at related tables meta class

parent 32dfeb71
...@@ -292,6 +292,7 @@ class UserKeyListTable(Table): ...@@ -292,6 +292,7 @@ class UserKeyListTable(Table):
class Meta: class Meta:
model = UserKey model = UserKey
template_name = "django_tables2/table_no_page.html"
attrs = {'class': ('table table-bordered table-striped table-hover'), attrs = {'class': ('table table-bordered table-striped table-hover'),
'id': "profile-key-list-table"} 'id': "profile-key-list-table"}
fields = ('name', 'fingerprint', 'created', 'actions') fields = ('name', 'fingerprint', 'created', 'actions')
...@@ -322,6 +323,7 @@ class ConnectCommandListTable(Table): ...@@ -322,6 +323,7 @@ class ConnectCommandListTable(Table):
class Meta: class Meta:
model = ConnectCommand model = ConnectCommand
template_name = "django_tables2/table_no_page.html"
attrs = {'class': ('table table-bordered table-striped table-hover'), attrs = {'class': ('table table-bordered table-striped table-hover'),
'id': "profile-command-list-table"} 'id': "profile-command-list-table"}
fields = ('name', 'access_method', 'template', 'actions') fields = ('name', 'access_method', 'template', 'actions')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment