Opened 6 years ago

Closed 6 years ago

#29035 closed Bug (needsinfo)

Django Admin does not URL encode the search terms of list filters, breaking the search URL.

Reported by: Nolan Love Owned by: nobody
Component: contrib.admin Version: 2.0
Severity: Normal Keywords:
Cc: Nolan Love Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Change History (2)

comment:1 by Nolan Love, 6 years ago

Cc: Nolan Love added
Component: Uncategorizedcontrib.admin
Type: UncategorizedBug

comment:2 by Tim Graham, 6 years ago

Resolution: needsinfo
Status: newclosed

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.

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