#33772: Queryset first() returns different result than queryset[0] when using
ExpressionWrapper
-------------------------------------+-------------------------------------
     Reporter:  Pablo Pissi          |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  Database layer       |                  Version:  3.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
  ExpressionWrapper,first,queryset   |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Pablo Pissi):

 * status:  closed => new
 * resolution:  invalid =>


Comment:

 Hi,

 I've read the docs about ordering, but in this case the queryset has only
 one value and the value returned by .first() is not a value that exists on
 the queryset, is that correct?

 It's returning values from the non-aggregated queryset

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33772#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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018142d6f83b-5ebed729-62d5-408a-9dbc-a4411a32bd88-000000%40eu-central-1.amazonses.com.

Reply via email to