Opened 7 years ago

Closed 6 years ago

#9351 closed (fixed)

Test client ignores querystring on post

Reported by: sime Owned by: nobody
Component: Testing framework Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by mtredinnick)

Typically, when I POST to "/example/?q=1", then request.GET['q'] == '1'.

This is true under at least the runserver, apache and fcgi.

However, TestCase.client.post() always produces an empty request.GET.

Change History (2)

comment:1 Changed 7 years ago by mtredinnick

  • Description modified (diff)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

(Fixed description formatting).

comment:2 Changed 6 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(In [9398]) Fixed #9351 -- Modified the test client to pass on URL encoded parameters to the underlying views. Thanks to sime for the suggestion.

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