Re: `select_related` relation control

2020-12-03 Thread Roger Gammans
On Thu, 2020-12-03 at 11:58 +, Adam Johnson wrote: > What prevents you from using select_related with an explicit list of > relations that you *do* want? well the fact the select_related() call is in third party code. In the most common case for us this is contrib.admin. So we are forced to

Re: `select_related` relation control

2020-12-03 Thread Adam Johnson
What prevents you from using select_related with an explicit list of relations that you *do* want? That's more maintainable as it prevents overfetching when you add new relations. If it were up to me I'd remove the "select_related()-selects-all-relations-behaviour" - it's too implicit and can lead