Opened 13 years ago

Last modified 13 years ago

#16751 closed Bug

GET variable names replaced by 'e' — at Initial Version

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

Description

I'm attempting to override the queryset() method to make a custom filter for the Change List Admin view. The idea was to append ?myview=1 to the URL and then check it like so:

if request.GETmyview == '1':
...

But everything I pass via the URL string is being replaced by the key name 'e' in the GET dictionary:

"Key 'myview' not found in <QueryDict: {u'e': [u'1']}>"

Curiously, this also happens in the final URL string. That is, the URL gets rewritten and redirected to ?e=1 as well.

Change History (0)

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