Skip to content
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

Corrected QuerySet.prefetch_related() note about GenericRelation(). #17268

Merged
merged 1 commit into from Sep 16, 2023

Conversation

felixxm
Copy link
Member

@felixxm felixxm commented Sep 15, 2023

GenericRelation is a reverse generic relationship so it's always homogeneous. Mentioning this as a restriction is confusing.

Noticed while reviewing #17136.

After:

image

GenericRelation is a reverse generic relationship so it's always
homogeneous. Mentioning this as a restriction is confusing.
@felixxm felixxm requested a review from a team September 15, 2023 17:52
@felixxm felixxm changed the title Corrected QuerySet.prefetch_realted() note about GenericRelation(). Corrected QuerySet.prefetch_related() note about GenericRelation(). Sep 15, 2023
Copy link
Member

@charettes charettes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense, the commit message will still includes the typo though.

@felixxm
Copy link
Member Author

felixxm commented Sep 16, 2023

Thanks both for reviews 👍

@felixxm felixxm merged commit 88b5b7b into django:main Sep 16, 2023
22 checks passed
@felixxm felixxm deleted the genericrelation-prefetch-note branch September 16, 2023 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants