#19755: Incremental filter
-------------------------------------+-------------------------------------
     Reporter:  paulox@…             |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  contrib.admin        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  filter, admin        |             Triage Stage:  Design
    Has patch:  0                    |  decision needed
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  1
-------------------------------------+-------------------------------------
Changes (by slurms):

 * needs_better_patch:   => 0
 * stage:  Unreviewed => Design decision needed
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 I was just about to close this as worksforme, because your description was
 a bit ambiguous -- you're proposing to remove choices from the list
 filters if you're already filtering on another value and the filtered set
 no longer contains all the choices.

 i.e. you have three people:

 {{{
 [{
     'name': 'Bob',
     'hair_color': 'brown',
     'eye_color': 'blue'
 }, {
     'name': 'Bruce',
     'hair_color': 'brown',
     'eye_color': 'hazel'
 }, {
     'name': 'Brett',
     'hair_color': 'ginger',
     'eye_color': 'brown'
 }]
 }}}

 and when you filter on brown hair, the list filter for eye color no longer
 lists brown, as there are now only two people in the filtered set and they
 have blue and hazel eyes.

 Seems like an OK idea, though it does require backwards-incompatible
 changes to django.contrib.admin. Marking as DDN.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19755#comment:1>
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to