#16436: `annotate()` + `select_related()` + `only()` = `ValueError: invalid 
literal
for int() with base 10`
-------------------------------------+-------------------------------------
     Reporter:  mrmachine            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |               Resolution:  fixed
     Severity:  Release blocker      |             Triage Stage:  Accepted
     Keywords:  annotate             |      Needs documentation:  0
  select_related only defer          |  Patch needs improvement:  1
  ValueError empty list              |                    UI/UX:  0
    Has patch:  1                    |
  Needs tests:  0                    |
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by Anssi Kääriäinen <akaariai@…>):

 In [changeset:"b495c24375aa1fe0373727511cf81298337a1227"]:
 {{{
 #!CommitTicketReference repository=""
 revision="b495c24375aa1fe0373727511cf81298337a1227"
 [1.5.x] Fixed #16436 -- defer + annotate + select_related crash

 Correctly calculate the ``aggregate_start`` offset from loaded fields,
 if any are deferred, instead of ``self.query.select`` which includes all
 fields on the model.

 Backpatch of 69f7db153d8108dcef033207d49f4c80febf3d70 from master.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16436#comment:15>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.db830cff85e9f8cb6a92dc321a646ecf%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to