#33651: Support prefetch GenericForeignKey with custom queryset.
-------------------------------------+-------------------------------------
     Reporter:  elonzh               |                    Owner:
                                     |  Gullapalli Saisurya Revanth
         Type:  New feature          |                   Status:  assigned
    Component:                       |                  Version:  4.0
  contrib.contenttypes               |
     Severity:  Normal               |               Resolution:
     Keywords:  GenericForeignKey    |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

 #24272 was a duplicate. One thing I noticed while reviewing it is that the
 signature of `GenericPrefetch` would likely be ergonomic as
 `GenericPrefetch(relation: str, querysets: list[QuerySet])` instead of
 `querysets: dict[Model, QuerySet]` since the model can be inferred from
 `queryset.model` anyway.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33651#comment:14>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070182c8e6000d-9ccf8197-6bd5-45b6-92e1-7c693208bec5-000000%40eu-central-1.amazonses.com.

Reply via email to