select_related in admin change_list
|Reported by:||krylatij||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When ForeignKey field appears in list_display django
automaticaly executes select_related() for my model.
So in my case it generates query with about 17 joins. =(
It will be great to manage which fields to query.
additional info here: http://groups.google.com/group/django-developers/browse_thread/thread/491053c89078a3ff
So it's pretty easy to fix without backward incompatibility changes.
As i understand you need to change only django\contrib\admin\views\main.py and django\contrib\admin\validation.py