1
0
mirror of https://github.com/django/django.git synced 2025-04-15 12:54:38 +00:00

[1.7.x] Fixed typo in docs/ref/request-response.txt

Backport of adf8fb34ce from master
This commit is contained in:
James Doherty 2014-10-24 09:00:33 +13:00 committed by Tim Graham
parent 7750fc8fa8
commit 69b5428c12

View File

@ -882,7 +882,7 @@ Without passing ``safe=False``, a :exc:`TypeError` will be raised.
Changing the default JSON encoder
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you need to use a differ JSON encoder class you can pass the ``encoder``
If you need to use a different JSON encoder class you can pass the ``encoder``
parameter to the constructor method::
>>> response = JsonResponse(data, encoder=MyJSONEncoder)