#15959: .values()/.values_list() fails on EmptyQuerySet
-------------------------------------+-------------------------------------
               Reporter:  Davide     |          Owner:  nobody
  Rizzo <mail@…>                     |         Status:  new
                   Type:  Bug        |      Component:  Database layer
              Milestone:             |  (models, ORM)
                Version:  1.2        |       Severity:  Normal
             Resolution:             |       Keywords:
           Triage Stage:  Accepted   |      Has patch:  1
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
Changes (by Victor van den Elzen <victor.van.den.elzen@…>):

 * has_patch:  0 => 1
 * ui_ux:   => 0


Comment:

 Like #7235, on the one hand, you shouldn't really use EmptyQuerySet
 without an associated model.
 {{{
 TestModel.objects.none().values('id')
 }}}
 works fine.

 On the other hand we could just fix it. Patch attached.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/15959#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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to