From e85bc81651abfc417e57aadf3dd7bed137c80430 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 2 May 2009 07:39:45 +0000 Subject: [PATCH] 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 --- docs/topics/serialization.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt index 0541c66f6c..751ff27b79 100644 --- a/docs/topics/serialization.txt +++ b/docs/topics/serialization.txt @@ -187,7 +187,7 @@ them. Something like 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