#25028: annotation with Q object duplicates results
-------------------------------+--------------------------------------
     Reporter:  karyon         |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  Uncategorized  |                  Version:  1.8
     Severity:  Normal         |               Resolution:  duplicate
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by karyon):

 @akaariai, in #25112 i made an attempt at the conditional aggregate you
 mentioned, although i wasn't quite sure how to do it. the first suggestion
 you made ({{{ filter(Q(groups__name='group1')|Q(groups__isnull=True))}}}
 for some reason filtered all users that had no group, and even if it
 didn't, it looks like it should filter all users that are in a group other
 than group1, right?

--
Ticket URL: <https://code.djangoproject.com/ticket/25028#comment:3>
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/064.d2802b364a3f03bff44e39697acfe948%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to