-
-
Notifications
You must be signed in to change notification settings - Fork 451
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: Update django.contrib.contenttypes.prefetch
#2115
Conversation
django.contrib.contenttypes.prefetch
from django.db.models.query import QuerySet | ||
|
||
class GenericPrefetch(Prefetch): | ||
def __init__(self, lookup: str, querysets: list[QuerySet] | None = ..., to_attr: str | None = ...) -> None: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, see django/django#18125
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sobolevn I've read the corresponding PR. It's a shame that if I had thought about it a little more, I would have found a bug. Still, thank you for letting me know the good opportunity :) I'm learning again today. If Django PR merges, I'll fix the code and apply it.
I have confirmed that the code has been applied! I will fix it and commit it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I have made things!
Update stubs for
django.contrib.contenttypes.prefetch
for Django 5.0.django.contrib.contenttypes.prefetch
django.contrib.contenttypes.prefetch.GenericPrefetch
was addedRelated issues
Refs
Upstream PR