summaryrefslogtreecommitdiff
path: root/docs/serialization.txt
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-02-20 01:59:59 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-02-20 01:59:59 +0000
commit3dd28bd566f5c6b665da4729c51abe98a36caccb (patch)
tree41c831069adaae16fb8006f5462898215e8d355a /docs/serialization.txt
parentda6570bf082620205737c82cd7deb7185daaf538 (diff)
queryset-refactor: Merged from turnk up to [7135] because I need some stuff.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7136 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.