Django

Code

Changeset 9397

Show
Ignore:
Timestamp:
11/12/08 05:20:32 (2 months ago)
Author:
russellm
Message:

Fixed #9369 -- Added QUERY_STRING info for PUT and DELETE requests in the test client. Thanks to david for the report.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/test/client.py

    r9396 r9397  
    333333            'CONTENT_TYPE':   content_type, 
    334334            'PATH_INFO':      urllib.unquote(path), 
     335            'QUERY_STRING':   urlencode(data, doseq=True), 
    335336            'REQUEST_METHOD': 'PUT', 
    336337            'wsgi.input':     FakePayload(post_data), 
     
    346347        r = { 
    347348            'PATH_INFO':       urllib.unquote(path), 
     349            'QUERY_STRING':    urlencode(data, doseq=True), 
    348350            'REQUEST_METHOD': 'DELETE', 
    349351            'wsgi.input':      FakePayload('')