diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-05-02 07:39:45 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-05-02 07:39:45 +0000 |
| commit | e85bc81651abfc417e57aadf3dd7bed137c80430 (patch) | |
| tree | 9f334e4ab82adc172b07855a4087fce43f661090 /docs/topics | |
| parent | fbf5eaac9460a0f97187b80c9ac16b9aa023802e (diff) | |
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
Diffstat (limited to 'docs/topics')
| -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 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 |
