From 3eec925f73621eba3f5db4f2c1da22271915d8b2 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 18 Feb 2008 23:43:12 +0000 Subject: 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 --- docs/serialization.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/serialization.txt') 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. -- cgit v1.3