Re: Too many SQLs in change_list pages

2006-04-03 Thread akaihola
I'm hitting the same problem with my own views and templates. I can query lots and lots of objects with one filter, but when I start to access related objects for each of the objects, Django fires lots of separate queries. I know select_related=True, but it doesn't seem to make a difference, and i

Too many SQLs in change_list pages

2006-04-03 Thread Qi Cheng
Hi, guys I have been troubled by a problem for weeks, this maybe very easy for you guys. It is about the "list_display" in ADMIN of models, say ModelA. If I add a method in list_dispaly(not a field) , which will access other models data, say ModelB. Then when I acess the modelA's change_list pa