You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.
(By "extra" I assume you are meaning that they are retrieved but not used.) django-lint does not currently detect this but given that the underlying pylint tool can detect unused local variables then it might be possible to some degree but there would be so many false positives as model instances can be passed between modules... so, no, on balance I don't think this woud be a good thing to add.
Regarding using values_list etc. I would not recommend this approach as it moves you out of the world of Django into "raw" Python - I would use .only().
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Can django-lint detects places where extra columns are retrieved, and provides suggestions of using
values
orvalues_list
? ThanksThe text was updated successfully, but these errors were encountered: