-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
[5.0.3 regression] Can’t filter
a QuerySet
on an alias
#2302
Comments
I don't know if we should call this a regression? Any version prior to At least there's no plugin code that tries to do anything with |
From a user perspective, this was allowed in 5.0.2 and incorrectly disallowed in 5.0.3. Whatever you’d like to call it, we can’t upgrade to django-stubs ≥ 5.0.3 in Zulip until it’s addressed. |
Really interesting: there are no handlers for django-stubs/mypy_django_plugin/main.py Lines 168 to 181 in b76f9f4
I will start digging into this! |
The problem happens because we use |
Although this incorrectly allows some misuses of `alias` that only work at runtime with `annotate`, that is better than incorrectly forbidding all uses of `alias`. Fixes typeddjango#2302. Signed-off-by: Anders Kaseorg <[email protected]>
Although this incorrectly allows some misuses of `alias` that only work at runtime with `annotate`, that is better than incorrectly forbidding all uses of `alias`. Fixes typeddjango#2302. Signed-off-by: Anders Kaseorg <[email protected]>
This was introduced by a28717d (#2277).
The text was updated successfully, but these errors were encountered: