#27554: Queryset evaluation fails with mix of nested and flattened prefetches
(AttributeError on RelatedManager)
-------------------------------------+-------------------------------------
     Reporter:  Anthony Leontiev     |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  1.10
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  prefetch             |             Triage Stage:  Accepted
  AttributeError prefetch_related    |
  nested RelatedManager              |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

 * stage:  Unreviewed => Accepted


Comment:

 I haven't tried reproducing myself but the report is complete enough that
 I trust the developer's judgment.

 Anthony, can you confirm this is also an issue when running
 `A.objects.prefetch_related('b__c__d'')`? What about
 `B.objects.prefetch_related('c__d')`?

 [https://docs.djangoproject.com/en/1.10/internals/contributing/triaging-
 tickets/#bisecting-a-regression Bisecting the exact commit that introduced
 the regression] would also be useful.

--
Ticket URL: <https://code.djangoproject.com/ticket/27554#comment:2>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.1e44708c5eb3b70e11ff13fa7b7de791%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to