...

/

Improve Performance

Improve Performance

Learn to improve the performances of our Django admin site.

Retrieving foreign key

If your model has a foreign key (like the Author for our Question model or Question for our Choice model), set list_select_related to instruct Django to use select_related() in retrieving the list of objects on the admin change list page. This can save you a bunch of database queries. You can do ...