#21510 closed Bug (fixed)
Admin change list search field is missing the "show all" link
Reported by: | Owned by: | Claude Paroz | |
---|---|---|---|
Component: | contrib.admin | Version: | 1.6 |
Severity: | Release blocker | Keywords: | search field show all missing link |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description
The admin change list search field is missing the link to reset the search term.
In Django 1.5 there was a link with wording like "1 result (4 total)" to the right of the search field. This link is missing in Django 1.6. The only way to see all of the items in the change list is to perform a search with an empty string search term.
Attachments (4)
Change History (13)
by , 11 years ago
Attachment: | search_test.zip added |
---|
by , 11 years ago
Attachment: | changelist_with_search_term.png added |
---|
Screen shot of the change list from the sample project, demonstrating the missing "show all" link
by , 11 years ago
Attachment: | Expected_behavior.png added |
---|
Screen shot of Django 1.5 demonstrating the expected behavior, e.g. a link that resets the search term is present
comment:2 by , 11 years ago
Triage Stage: | Unreviewed → Accepted |
---|
Hi,
I can indeed reproduce the issue you're describing.
From what I can tell, this removal wasn't intentional since the code in django/contrib/admin/templates/admin/search_form.html
was basically untouched between 1.5 and 1.6 [1]
[1] https://github.com/django/django/commits/master/django/contrib/admin/templates/admin/search_form.html
comment:3 by , 11 years ago
Looks like the problem was introduced by commit f07a5f0a21857204465019b4e68f914d31cb396a (found with git bisect
).
by , 11 years ago
Attachment: | 21510.diff added |
---|
comment:5 by , 11 years ago
Has patch: | set |
---|---|
Needs tests: | set |
Attached is a patch that seems to fix the issue although I haven't run the tests or checked the code in a comprehensive fashion.
comment:6 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:8 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Sample project to demonstrate the issue