1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Introduced SearchTable for improved performance

This commit is contained in:
Jeremy Stretch
2017-03-29 16:05:23 -04:00
parent d04436aa0a
commit a5dc91c175
10 changed files with 290 additions and 144 deletions

View File

@@ -4,7 +4,9 @@ from django.utils.safestring import mark_safe
class BaseTable(tables.Table):
"""
Default table for object lists
"""
def __init__(self, *args, **kwargs):
super(BaseTable, self).__init__(*args, **kwargs)
@@ -18,6 +20,17 @@ class BaseTable(tables.Table):
}
class SearchTable(tables.Table):
"""
Default table for search results
"""
class Meta:
attrs = {
'class': 'table table-hover',
}
orderable = False
class ToggleColumn(tables.CheckBoxColumn):
def __init__(self, *args, **kwargs):