Filter shown fields and add some icons to boolean values

This commit is contained in:
2022-08-11 07:22:22 +01:00
parent 86ec95ab6c
commit f7b82147c7
3 changed files with 42 additions and 9 deletions

View File

@@ -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