Django

Code

Ticket #9351 (closed: fixed)

Opened 3 months ago

Last modified 2 months ago

Test client ignores querystring on post

Reported by: sime Assigned to: nobody
Milestone: Component: Testing framework
Version: 1.0 Keywords:
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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.

Attachments

Change History

10/14/08 21:23:51 changed by mtredinnick

  • needs_better_patch changed.
  • stage changed from Unreviewed to Accepted.
  • description changed.
  • needs_tests changed.
  • needs_docs changed.

(Fixed description formatting).

11/12/08 05:22:07 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #9351 (Test client ignores querystring on post)




Change Properties
Action