django__django-11451
ModelBackend.authenticate() shouldn't make a database query when username is None
Verdict: the fix is stated in the issue (Tier A).
My suggestion is to shortcut with: if username is None or password is None: return
The text states the fix: “My suggestion is to shortcut with: if username is None or password is None: return”
All SWE-bench Verified tasks · more django/django tasks · How the check works