Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#20767 closed Bug (fixed)

preserve_filters with namespaces and multiple admins

Reported by: Collin Anderson Owned by: loic84
Component: contrib.admin Version: 1.6-beta-1
Severity: Normal Keywords:
Cc: cmawebsite@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm finding that preserve_filters is not working if I add a second admin with a namespace.

I have simple multiple admin project that you can use to use to try it yourself.
https://github.com/collinanderson/multiadmin

I think the problem is happening somewhere around here:
https://github.com/django/django/commit/c86a9b63984f6692d478f6f70e3c78de4ec41814#L0R769

Change History (8)

comment:1 by loic84, 11 years ago

Owner: changed from nobody to loic84
Status: newassigned
Triage Stage: UnreviewedAccepted

Thanks for the report and ticket, I can reproduce it.

comment:2 by Collin Anderson, 11 years ago

Cc: cmawebsite@… added

comment:4 by loic84, 11 years ago

Has patch: set

comment:5 by Collin Anderson, 11 years ago

This fixes my problem. Thanks so much.

comment:6 by loic84, 11 years ago

Triage Stage: AcceptedReady for checkin

comment:7 by Simon Charette <charette.s@…>, 11 years ago

Resolution: fixed
Status: assignedclosed

In 2fc6c9472cd25910f978fe1d18de5c350370f901:

Fixed #20767 -- Fixed ModelAdmin.preserve_filters for namespaced URLs.

Thanks Collin Anderson for the report.

comment:8 by Simon Charette <charette.s@…>, 11 years ago

In c660f0e9857e570628e68fa856cc0b613382bd1a:

[1.6.x] Fixed #20767 -- Fixed ModelAdmin.preserve_filters for namespaced URLs.

Thanks Collin Anderson for the report.

Backport of 2fc6c9472c from master.

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