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
Fixed #30355 -- Doc'd interaction between custom managers and prefetch_related(). #16900
Conversation
Thank you @Akash-Kumar-Sen for this work. I have squashed commits, tweaked the text a little bit and changed the display to be an admonition: I'll leave this PR here for a few days to see if other reviewers prefer other wording, otherwise I'll land before the week ends. |
Thank you @Akash-Kumar-Sen for picking this up and pushing it forward. 👍 I'm slightly nervous this sounds like we're just documenting a bug / limitation of Django, but I'm fairly sure this isn't the case. I'm left with more questions than answers. Could we add a little more to explain either why this is the correct behaviour or what the other means are to work around this are? (comments on ticket indicate there are, but it's not clear to me what that could be). Is it possible to write something like?
|
I have the same feelings. The current behavior is what it is. I wouldn't document it as unexpected, maybe:
|
@smithdc1 The possible explanation here is that Attaching the testcase for better understanding: https://github.com/Akash-Kumar-Sen/django/blob/ticket_30355_3/tests/dummy_tests/tests.py |
@Akash-Kumar-Sen Thanks 👍 I pushed small formatting edits. |
ticket #30355