Skip to content

Avoid thousands of SQL queries when opening many endpoints in the browser

Erwan Rouchet requested to merge base-template-everywhere into master

When opening an endpoint in the browser to look at its queries from the debug toolbar, it is common to wait for quite a while because the HTML form loads up to a 1000 items for all PrimaryKeyRelatedField (#634 (closed), #642 (closed)) so I took a few minutes to just add the usual one-line fix to every single affected PrimaryKeyRelatedField…

Edited by Erwan Rouchet

Merge request reports

Loading