Skip to content

Fetching few fields from a Reverse Relation #451

Answered by collerek
igormorgado asked this question in Q&A
Discussion options

You must be logged in to vote

With select_related you can only select nested models, not the columns. To select subset of fields, combine select_related with fields and/or exclude_fields.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@igormorgado
Comment options

@michaeltoohig
Comment options

@collerek
Comment options

@igormorgado
Comment options

@collerek
Comment options

Answer selected by igormorgado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants