Opened 8 years ago

Closed 5 years ago

Last modified 5 years ago

#27888 closed Cleanup/optimization (fixed)

Add a button to clear all admin filters

Reported by: David Herring Owned by: Hasan Ramezani
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: cmawebsite@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When in Django admin, it would be useful to be able to remove all filters and search criteria set in one click.

Change History (11)

comment:1 by Tim Graham, 8 years ago

Component: Uncategorizedcontrib.admin
Summary: Option to clear all filters at top of filter listAdd a button to clear all admin filters
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

Seems okay as long as it's simple and tasteful. It might involve clearing the query string. I think the functionality is already provided when search is enabled. To the right right of the search box, something like "N results (X total)" is displayed. If you click "X total", the query string is removed and all results are displayed.

Last edited 8 years ago by Tim Graham (previous) (diff)

comment:2 by Md. Al-Amin , 8 years ago

Owner: changed from nobody to Md. Al-Amin
Status: newassigned

I am going to work on this ticket.

comment:4 by Collin Anderson, 8 years ago

Cc: cmawebsite@… added
Patch needs improvement: set

The button is hidden behind the filter box for me. My browser width is around 1100px.

comment:5 by Md. Al-Amin , 8 years ago

Patch needs improvement: unset

Thanks for the report. I have fixed the styling issue and updated the pull request.

comment:6 by Tim Graham, 8 years ago

Patch needs improvement: set

comment:7 by Hasan Ramezani, 5 years ago

Owner: changed from Md. Al-Amin to Hasan Ramezani
Patch needs improvement: unset

comment:8 by Mariusz Felisiak, 5 years ago

Patch needs improvement: set
Version: 1.10master

comment:9 by Hasan Ramezani, 5 years ago

Patch needs improvement: unset

comment:10 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

Resolution: fixed
Status: assignedclosed

In b94764e1:

Fixed #27888 -- Added link to clear all filters in the admin changelist view.

comment:11 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

In 5d654e1e:

Refs #27888 -- Removed redundant {% if %} in admin changelist filters.

Note: See TracTickets for help on using tickets.
Back to Top