summaryrefslogtreecommitdiff
path: root/docs/serialization.txt
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-02-18 23:43:12 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-02-18 23:43:12 +0000
commit3eec925f73621eba3f5db4f2c1da22271915d8b2 (patch)
tree0bb473e0c10ea3af498ff74f8cd5a8f1a1295781 /docs/serialization.txt
parente7b2ad8020aef2941eb477632c4a453e7150202a (diff)
Fixed a few errors in the documentation. Thanks, Matthew Flanagan, panni@fragstore.net and adamv.
Fixed #6411, #6426, #6524, #6555. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/serialization.txt')
-rw-r--r--docs/serialization.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/serialization.txt b/docs/serialization.txt
index dff33f219f..e901410f1c 100644
--- a/docs/serialization.txt
+++ b/docs/serialization.txt
@@ -88,7 +88,7 @@ something like::
for deserialized_object in serializers.deserialize("xml", data):
if object_should_be_saved(deserialized_object):
- obj.save()
+ deserialized_object.save()
In other words, the usual use is to examine the deserialized objects to make
sure that they are "appropriate" for saving before doing so. Of course, if you trust your data source you could just save the object and move on.