#24047: Cannot combine values_list querysets that do subqueries
-------------------------------+--------------------
     Reporter:  danni          |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.6
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 I have a query like:

 {{{
 qs1 = object.comments.values_list('author__email', flat=True)
 qs2 = object.group.members('email', flat=True)
 recipients = qs1 & qs2
 }}}


 Where author and members are both User objects. This tells me the fields
 must match to do a combine. If I override the field by doing something
 hacky like qs1.fields=['email'] it tells me the base classes must match to
 do a combine.

--
Ticket URL: <https://code.djangoproject.com/ticket/24047>
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/048.6c5657ed70fcff01aaf50f4938ac775d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to