-
Notifications
You must be signed in to change notification settings - Fork 353
Closed
Labels
Description
Is your feature request related to a problem? Please describe.
I got a list of 100 models, each connected to django User model. For each model I get a DB request to accounts table to select it.
Describe the solution you'd like
Something like prefetch_related working in django. I want something like in User model get_queryset:
qs = qs.prefetch_related('account')
As I found out this function triggers DB request:
account.context_processors.account -> Account.for_request
which just uses Account.get().
