views:

64

answers:

2

Is it possible to let the users choose / change dynamically the columns displayed in a object list in Django administration ?

Things can surely be implemented "from scratch" by modifying the 'change_list.html' template but I was wondering if somebody has already had the same problem and/or if any django-pluggin can do that.

Thanks in advance,

A: 

If I've interpreted your question correctly, the solution is to set list_display in your extension of ModelAdmin for that object. Refer to the Django Tutorial, Part 2.

Matt Boehm
Hi Matt, thanks for your answer. In fact, my question was : how can a application user (not a developer) change ** dynamically** the displayed column (from the admin interface, not from the python code). I don't know if it is possible...
tomjerry
thanks for your clarification. If I had to guess, I'd assume the simplest route would be to edit the templates and add a massive amount of CSS to hide/un-hide certain columns and insert a menu to toggle it, but this is a fairly uneducated guess and pretty far from ideal.
Matt Boehm
A: 

Tomjerry, have you found a proper solution for this? Or can you provide me your hack? :)

Michael S