#30951: Admin Documentation recommends an incorrect method to get selected 
objects.
-----------------------------------------+------------------------
               Reporter:  Daniel         |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Documentation  |        Version:  2.2
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  1
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 ( https://docs.djangoproject.com/en/2.2/ref/contrib/admin/actions
 /#actions-that-provide-intermediate-pages )
 `/docs/ref/contrib/admin/actions.txt`
 in paragraph
 `Actions that provide intermediate pages`


 recommends directly accessing the form values:

 `selected = request.POST.getlist(admin.ACTION_CHECKBOX_NAME)`

 to get a list of selected ids.  This fails to take into account if the
 `select all` box has been selected.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30951>
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/055.2071e72f11d3f38d0ecde5cfe1188640%40djangoproject.com.

Reply via email to