Opened 7 years ago

Closed 4 years ago

Last modified 4 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, 7 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 provide 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.

Version 0, edited 7 years ago by Tim Graham (next)

comment:2 by Md. Al-Amin , 7 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, 7 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 , 7 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, 7 years ago

Patch needs improvement: set

comment:7 by Hasan Ramezani, 4 years ago

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

comment:8 by Mariusz Felisiak, 4 years ago

Patch needs improvement: set
Version: 1.10master

comment:9 by Hasan Ramezani, 4 years ago

Patch needs improvement: unset

comment:10 by Mariusz Felisiak <felisiak.mariusz@…>, 4 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@…>, 4 years ago

In 5d654e1e:

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

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