Fewer columns in admin popups

2009-04-11 Thread Dave Benjamin
Hello, In the Django admin site, I find myself going back and forth between adding more columns to list_display to enhance the list view and then removing them when I realize that they make the list view too big for the popup version displayed when clicking on the add button or the raw_id_fields

Re: Fewer columns in admin popups

2009-04-16 Thread Dave Benjamin
On Apr 11, 9:29 am, Dave Benjamin wrote: > Is it possible to exclude columns from the popup list view? I may have answered my own question. It looks like the popup is generated from the changelist_view method of ModelAdmin, and this method gets the request as a parameter. I was able to mod

Re: Fewer columns in admin popups

2009-04-16 Thread Dave Benjamin
On Apr 16, 2:20 pm, Alex Gaynor wrote: > This code isn't threadsafe.  If you use your application in a multithreaded > application they will "cross the streams" so to speak and you will see > things rendred with the wrong list display. Ahh, that's what I was afraid of. Thanks for the confirmatio

Re: Fewer columns in admin popups

2009-04-16 Thread Dave Benjamin
On Apr 16, 3:30 pm, andybak wrote: > Is there any other approach to this that could be thread safe? Well, one way would be to cut and paste the entire body of changelist_view from django/contrib/admin/options.py and add some logic around the call to the ChangeList constructor. However, this woul