Opened 8 years ago

Closed 5 years ago

#9119 closed New feature (fixed)

[patch] Admin change list does not allow custom get parameters

Reported by: fas Owned by: fas
Component: contrib.admin Version: 1.0
Severity: Normal Keywords: admin, query, get, parameter, filter
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In customizing the admin list behaviour, one is restricted to not using any GET parameters as all of them are passed to the queryset filter method as field lookups. Custom get parameters would be necessary, for example, to add custom filters with are not based on model fields lookups.

Attachments (1)

ignore_non_field_params_against_9066.diff (1.0 KB) - added by fas 8 years ago.
Only use field lookup parameters to filter the results, ignore others.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 8 years ago by fas

Status: newassigned

Changed 8 years ago by fas

Only use field lookup parameters to filter the results, ignore others.

comment:2 Changed 8 years ago by fas

Needs tests: set

comment:3 Changed 8 years ago by (none)

milestone: post-1.0

Milestone post-1.0 deleted

comment:4 Changed 8 years ago by Jacob

Triage Stage: UnreviewedDesign decision needed

comment:5 Changed 6 years ago by Luke Plant

Severity: Normal
Type: New feature

comment:6 Changed 5 years ago by Julien Phalip

Easy pickings: unset
Resolution: fixed
Status: assignedclosed
UI/UX: unset

This was essentially fixed with the introduction of custom list filters in r16144.

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