[Django] #29035: Django Admin does not URL encode the search terms of list filters, breaking the search URL.

8 views
Skip to first unread message

Django

unread,
Jan 17, 2018, 11:20:52 PM1/17/18
to django-...@googlegroups.com
#29035: Django Admin does not URL encode the search terms of list filters, breaking
the search URL.
-----------------------------------------+------------------------
Reporter: Nolan Love | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
I have a model with a float field which I included in the ModelAdmin under
list_filter.

The float values of the model field are displayed as list filter links in
the Django admin, but the period in the float value is not URL encoded, so
the request fails and reverts to an unfiltered list.

--
Ticket URL: <https://code.djangoproject.com/ticket/29035>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 17, 2018, 11:21:38 PM1/17/18
to django-...@googlegroups.com
#29035: Django Admin does not URL encode the search terms of list filters, breaking
the search URL.
-------------------------------+--------------------------------------

Reporter: Nolan Love | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 2.0
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Nolan Love):

* cc: Nolan Love (added)
* type: Uncategorized => Bug
* component: Uncategorized => contrib.admin


--
Ticket URL: <https://code.djangoproject.com/ticket/29035#comment:1>

Django

unread,
Jan 29, 2018, 12:36:18 PM1/29/18
to django-...@googlegroups.com
#29035: Django Admin does not URL encode the search terms of list filters, breaking
the search URL.
-------------------------------+--------------------------------------

Reporter: Nolan Love | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 2.0
Severity: Normal | Resolution: needsinfo

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => needsinfo


Comment:

Trying the steps you outlined, I couldn't reproduce a problem. Could you
provide a sample project that demonstrates the issue? I see a query string
like `?f_votes=1.0` which seems to filter just fine.

--
Ticket URL: <https://code.djangoproject.com/ticket/29035#comment:2>

Reply all
Reply to author
Forward
0 new messages