diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-12-03 02:59:56 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-12-03 02:59:56 +0000 |
| commit | 07ddd56872e70e76e13eb0b118c7b6503d5d821f (patch) | |
| tree | e1e2eb0ab912b1b26246b4736ad114cc4541ad9c /docs/serialization.txt | |
| parent | 79653a414857e4f93918051843afbc1f7c9a7f99 (diff) | |
queryset-refactor: Merged from trunk up to [6856].
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/serialization.txt')
| -rw-r--r-- | docs/serialization.txt | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/docs/serialization.txt b/docs/serialization.txt index cf8b196931..dff33f219f 100644 --- a/docs/serialization.txt +++ b/docs/serialization.txt @@ -135,8 +135,8 @@ For example:: json_serializer = serializers.get_serializer("json")() json_serializer.serialize(queryset, ensure_ascii=False, stream=response) -Django ships with a copy of simplejson_ in the source. Be aware, that if -you're using that for serializing directly that not all Django output can be +The Django source code includes the simplejson_ module. Be aware that if +you're serializing using that module directly, not all Django output can be passed unmodified to simplejson. In particular, `lazy translation objects`_ need a `special encoder`_ written for them. Something like this will work:: @@ -151,8 +151,3 @@ need a `special encoder`_ written for them. Something like this will work:: .. _lazy translation objects: ../i18n/#lazy-translation .. _special encoder: http://svn.red-bean.com/bob/simplejson/tags/simplejson-1.7/docs/index.html - -Writing custom serializers -`````````````````````````` - -XXX ... |
