In Django doc,
select_related() "follows" foreign-key relationships, selecting additional related-object data when it executes its query.
prefetch_related() does a separate lookup for each relationship and does the "joining" in Python.
What does it mean by "doing the joining in python"? Can someone illustrate with an example?
My understanding is that for a foreign key relationship, use select_related; and for M2M relationship, use prefetch_related. Is this correct?