New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] admin: prefetch related fields #366
Conversation
I'm a |
Sure. At least you do not have two-space indendation.. ;) I have some stashed tests to test the number of queries in existing tests - will update. |
Tests have been added - but there might be a better way. |
Codecov Report
@@ Coverage Diff @@
## master #366 +/- ##
=========================================
+ Coverage 99.39% 99.4% +<.01%
=========================================
Files 34 34
Lines 1662 1676 +14
Branches 135 138 +3
=========================================
+ Hits 1652 1666 +14
Misses 5 5
Partials 5 5
Continue to review full report at Codecov.
|
Would like some feedback on the tests. |
This only does it for the customer's changelist view now, but it meant
to be generic enough for other admins.
You can easily see the number of queries going down when using django-debug-toolbar or something similar.
TODO: