Adding 'nowrap' CSS class to admin list display

168 views
Skip to first unread message

Eduardo Rivas

unread,
Sep 15, 2012, 8:05:51 PM9/15/12
to mezzani...@googlegroups.com
I would like to apply the 'nowrap' CSS class to some table columns in the list display of my app. I thought this would be easy to find out, but the Django documentation says that admin customization is in development and the current docs are obsolete. I guess I should have templates/admin/foo.html in my application folder, but I don't know what file to extend/override.

Stephen McDonald

unread,
Sep 15, 2012, 9:03:08 PM9/15/12
to mezzani...@googlegroups.com
I'd treat the docs as correct for now. Have a look at the change_list.html template (per model) or the base_site.html template (for the entire admin site).

Adding your own CSS to those is fairly trivial.


On Sun, Sep 16, 2012 at 10:05 AM, Eduardo Rivas <jeriva...@gmail.com> wrote:
I would like to apply the 'nowrap' CSS class to some table columns in the list display of my app. I thought this would be easy to find out, but the Django documentation says that admin customization is in development and the current docs are obsolete. I guess I should have templates/admin/foo.html in my application folder, but I don't know what file to extend/override.



--
Stephen McDonald
http://jupo.org
Reply all
Reply to author
Forward
0 new messages