Opened 8 years ago
Closed 8 years ago
#28635 closed Bug (fixed)
admin's preserved filters don't work if the URL has non-ASCII characters in it
| Reported by: | Wenli Tsai | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.admin | Version: | 1.11 |
| Severity: | Normal | Keywords: | add_preserved_filters |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The preserved_filters won't be correctly recovered when url contains unicode prefix.
When save the change form and return to the changelist,
the changelist url should be /admin/myApp/台灣Model/?cityID=a.
But we got /admin/myApp/台灣Model/?_changelist_filters=cityID%3Da,
and 302 redirected to /admin/myApp/台灣Model/?e=1.
Change History (7)
comment:1 by , 8 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 8 years ago
| Summary: | Non-ASCII url prefix → Preserved filters with non-ASCII url prefix |
|---|
comment:3 by , 8 years ago
| Summary: | Preserved filters with non-ASCII url prefix → Preserved filters with unicode url prefix |
|---|
comment:4 by , 8 years ago
| Description: | modified (diff) |
|---|
comment:5 by , 8 years ago
| Has patch: | set |
|---|---|
| Summary: | Preserved filters with unicode url prefix → admin's preserved filters don't work if the URL has non-ASCII characters in it |
| Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
PR