Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #10954 -- Corrected error in docs example describing extending …

…the JSON serializer. Thanks to Glenn for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10654 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e85bc81651abfc417e57aadf3dd7bed137c80430 1 parent fbf5eaa
Russell Keith-Magee authored May 02, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/topics/serialization.txt
2  docs/topics/serialization.txt
@@ -187,7 +187,7 @@ them. Something like this will work::
187 187
         def default(self, obj):
188 188
             if isinstance(obj, Promise):
189 189
                 return force_unicode(obj)
190  
-            return obj
  190
+            return super(LazyEncoder, self).default(obj)
191 191
 
192 192
 .. _special encoder: http://svn.red-bean.com/bob/simplejson/tags/simplejson-1.7/docs/index.html
193 193
 

0 notes on commit e85bc81

Please sign in to comment.
Something went wrong with that request. Please try again.