﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6524	[patch] bug in serialization documentation example code	Matthew Flanagan <mattimustang@…>	nobody	"Hi,

Here is a small inline patch for the doc bug:

{{{
Index: docs/serialization.txt
===================================================================
--- docs/serialization.txt      (revision 7049)
+++ docs/serialization.txt      (working copy)
@@ -88,7 +88,7 @@

     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.
}}}"		closed	Documentation	dev		fixed	serialization		Accepted	1	0	0	0	0	0
