Skip to content

Commit c4f9452

Browse files
committed
inform django-tables2 that some columns are not orderable
1 parent 6d4d36b commit c4f9452

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/jobs/tables.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ class JobTable(tables.Table):
1717

1818
uuid = BPOverflowColumn(bp="lg", verbose_name="Job UUID")
1919
basefile = tables.Column(verbose_name="File", linkify=True)
20-
job_type = tables.Column(verbose_name="Job Type")
21-
result_url = tables.Column(verbose_name="Result url")
20+
job_type = tables.Column(verbose_name="Job Type", orderable=False)
21+
result_url = tables.Column(verbose_name="Result url", orderable=False)
2222

2323
# show only at xxl and up
24-
width = BPColumn(bp="xxl")
25-
height = BPColumn(bp="xxl")
24+
width = BPColumn(bp="xxl", orderable=False)
25+
height = BPColumn(bp="xxl", orderable=False)
2626
filetype = BPColumn(bp="xxl")
27-
custom_aspect_ratio = BPColumn(bp="xxl", verbose_name="Custom AR")
27+
custom_aspect_ratio = BPColumn(bp="xxl", verbose_name="Custom AR", orderable=False)
2828
source_url = BPColumn(bp="xxl")
2929

3030
# show only at 3xl and up

0 commit comments

Comments
 (0)