id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 24316 Admin changelist column CSS classes do not use short description, instead using str(list_display_function) JordanBright Tim Graham "The column names in a changelist respect the short description but the CSS classes do not. This is particularly bad if you use a lambda as the class name becomes `column-< ;function <lambda> at ...` in the `th` and `field- at ...` in the `td`. I think this is caused by two functions in `django/contrib/admin/templatetags/admin_list.py` `result_headers` uses `field_name` from `for i, field_name in enumerate(cl.list_display)` when it should be using `text` (from `text, attr = label_for_field(...)`) and doing something to make it a safe css class name, I think `items_for_result` also uses `field_name` from `for field_name in cl.list_display` and it should probably just use whatever `result_headers` should be using. To reproduce simply create a lambda function and put it in a list display then inspect the header and field classes in your browser. I'll attach a test case that reproduces it shortly." Bug closed contrib.admin 1.7 Normal fixed francis@… Ready for checkin 1 0 0 0 0 0