mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #29082 -- Allowed the test client to encode JSON request data.
This commit is contained in:
committed by
Tim Graham
parent
d968788b57
commit
47268242b0
@@ -208,6 +208,10 @@ Tests
|
||||
|
||||
* Added test :class:`~django.test.Client` support for 307 and 308 redirects.
|
||||
|
||||
* The test :class:`~django.test.Client` now serializes a request data
|
||||
dictionary as JSON if ``content_type='application/json'``. You can customize
|
||||
the JSON encoder with test client's ``json_encoder`` parameter.
|
||||
|
||||
URLs
|
||||
~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user