From 5f730ded91dde9720e0219af8c1c7c15fe11b6f8 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 2 May 2009 07:43:55 +0000 Subject: [PATCH] [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 --- 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 3dc837cfbc..9213166374 100644 --- a/docs/topics/serialization.txt +++ b/docs/topics/serialization.txt @@ -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