Filter shown fields and add some icons to boolean values
This commit is contained in:
@@ -5,6 +5,7 @@ from django_tables2.columns.base import BoundColumn
|
||||
# Make the table column headings lowercase
|
||||
orig_Column_header = BoundColumn.header
|
||||
|
||||
|
||||
@property
|
||||
def format_header(self):
|
||||
header = orig_Column_header.__get__(self)
|
||||
@@ -19,6 +20,7 @@ def format_header(self):
|
||||
|
||||
return header
|
||||
|
||||
|
||||
BoundColumn.header = format_header
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user