[1.0.X] Fixed #10954 -- Corrected error in docs example describing extending the JSON serializer. Thanks to Glenn for the report.

Merge of r10654 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2009-05-02 07:43:55 +00:00
parent d22290b2ce
commit 5f730ded91
1 changed files with 1 additions and 1 deletions

View File

@ -181,6 +181,6 @@ this will work::
def default(self, obj):
if isinstance(obj, Promise):
return force_unicode(obj)
return obj
return super(LazyEncoder, self).default(obj)
.. _special encoder: http://svn.red-bean.com/bob/simplejson/tags/simplejson-1.7/docs/index.html