#31597: New "Clear all filters" shown always in raw_id_fields popup
               Reporter:  frnhr          |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  contrib.admin  |        Version:  master
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  1              |
 The new "Clear all filters" link does not play nice with `raw_id_fields`
 lookup popup window. The new link is shown in the popup regardless of any
 filters being selected or not.

 Present in `3.1a1`.

 To reproduce:

  * create two models, `ModelA` and `ModelB`
      * create a Foreign key field on `ModelA` pointing to `ModelB`
      * create a boolean field on `ModelB`

  * create an admin page for `ModelA`
      * add the FK field to `raw_id_fields` list

  * create an admin page for `ModelB`
      * add the boolean field to `list_filter` list

  * open the admin page in a browser
  * click on the "magnifying class" icon for the `ModelB` field

  * expected:
     * no `X Clear all filters` link

  * actual:
     * yes `X Clear all filters` link

 Additionally, clicking the link removes `_to_field` query param, which it
 should not do (`_popup` param is correctly preserved).


Ticket URL: <https://code.djangoproject.com/ticket/31597>
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 

Reply via email to