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`.
--
Ticket URL: <https://code.djangoproject.com/ticket/28635>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> We found the preserved_filters won't be correctly recovered when url
> contains non-ASCII 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`.
New description:
The preserved_filters won't be correctly recovered when url contains non-
ASCII 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`.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/28635#comment:1>
--
Ticket URL: <https://code.djangoproject.com/ticket/28635#comment:2>
--
Ticket URL: <https://code.djangoproject.com/ticket/28635#comment:3>
Old description:
> The preserved_filters won't be correctly recovered when url contains non-
> ASCII 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`.
New description:
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`.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/28635#comment:4>
* has_patch: 0 => 1
* stage: Unreviewed => Accepted
Comment:
[https://github.com/django/django/pull/9145 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/28635#comment:5>
* owner: nobody => Dheerendra Rathor
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/28635#comment:6>
* owner: Dheerendra Rathor => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/28635#comment:7>
* stage: Accepted => Ready for checkin
Comment:
PR looks good.
--
Ticket URL: <https://code.djangoproject.com/ticket/28635#comment:6>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"ba37ee9ef882deb8e917f1cae0c586a0a275e731" ba37ee9e]:
{{{
#!CommitTicketReference repository=""
revision="ba37ee9ef882deb8e917f1cae0c586a0a275e731"
Fixed #28635 -- Fixed admin's preserved filters if the URL contains non-
ASCII characters.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28635#comment:7>