diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-05-02 07:43:55 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-05-02 07:43:55 +0000 |
| commit | 5f730ded91dde9720e0219af8c1c7c15fe11b6f8 (patch) | |
| tree | 0f2dff0a51badbccdac34b263be5685b7b90e309 | |
| parent | d22290b2ce00909c2f92b6dacadfbfb0deeefd7f (diff) | |
[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
| -rw-r--r-- | docs/topics/serialization.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
