Code

Opened 6 years ago

Closed 3 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 6 years ago.
Only use field lookup parameters to filter the results, ignore others.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 6 years ago by fas

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Status changed from new to assigned

Changed 6 years ago by fas

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

comment:2 Changed 6 years ago by fas

  • Needs tests set

comment:3 Changed 5 years ago by anonymous

  • milestone post-1.0 deleted

Milestone post-1.0 deleted

comment:4 Changed 5 years ago by jacob

  • Triage Stage changed from Unreviewed to Design decision needed

comment:5 Changed 3 years ago by lukeplant

  • Severity set to Normal
  • Type set to New feature

comment:6 Changed 3 years ago by julien

  • Easy pickings unset
  • Resolution set to fixed
  • Status changed from assigned to closed
  • UI/UX unset

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.