Replies: 3 comments
-
good point, can you share some PoC? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Super simple Or explicit parameter
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Any news on this? I can open a PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is linked to #4917
django-rest-framework/rest_framework/relations.py
Line 561 in 4c7c693
Why can't we just allow some customization at this line? Usually with any toolbox, we provide a best effort default and give the user the option to customize. In this case, the relations will ALWAYS be fetched with
.all()
. I have a simple case where I need an annotation on each child and so a single query is enough, if done on theManyRelatedField
level. How about making theManyRelatedField
also accept aqueryset
argument and default to.all()
if there is noqueryset
argument?Beta Was this translation helpful? Give feedback.
All reactions