#34330: QuerySet of a model having Meta.ordering, returns the sortable field in
values_list() and values()
-----------------------------------------+------------------------
               Reporter:  r_valeev       |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Uncategorized  |        Version:  2.2
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 If you pass a Queryset to Subquery(), whose model has Meta.ordering, then
 the fields declared in ordering will be added to the result of values() or
 values_list() imperceptibly, then the error "Subquery returns more than 1
 row" is raised

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34330>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701863b469caf-bfcb536a-fac3-4e5c-834a-a67798224c10-000000%40eu-central-1.amazonses.com.

Reply via email to