标签: css django
在Django中,可以使用{% sort_column Date date %}之类的东西来自动生成可排序的列。这会产生
{% sort_column Date date %}
<th> <a href="?sortby=date&order=d">Date</a> </th>
但是如何将CSS类应用于此列,以便得到类似下面的内容?
<th class="my-class"> <a href="?sortby=date&order=d">Status</a> </th>
谢谢!