Hi there,
as I want to add custom css class to table header in admin, I was
looking for template, which I should edit.

I found that method result_headers in django/contrib/admin/
templatetags/admin_list.py sets whole 'class="xxx"' string. Why is
there 'class=' thing ? It's quiet complicated to alter template with
this hardcoded string. (This part of question is more for developers,
maybe)

My question is, how can I override templatetag ( result_headers in
this case ) ?

Thank you!

Ps: My original idea was add css class according to field name and
type, eg: class="id integer", etc. I want to specify column width
according it's content. Is there any better solution than overriding
template tag?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to