Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a few long lines and removed trailing whitespace.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 56d901edccc09603c2c0012a793f45dfba0ab3cd 1 parent d4b8da2
Gary Wilson Jr. authored August 03, 2008

Showing 1 changed file with 9 additions and 8 deletions. Show diff stats Hide diff stats

  1. 17  docs/serialization.txt
17  docs/serialization.txt
@@ -51,10 +51,10 @@ be serialized.
51 51
 
52 52
 .. note::
53 53
 
54  
-    Depending on your model, you may find that it is not possible to deserialize
55  
-    a model that only serializes a subset of its fields. If a serialized object
56  
-    doesn't specify all the fields that are required by a model, the deserializer
57  
-    will not be able to save deserialized instances.
  54
+    Depending on your model, you may find that it is not possible to
  55
+    deserialize a model that only serializes a subset of its fields. If a
  56
+    serialized object doesn't specify all the fields that are required by a
  57
+    model, the deserializer will not be able to save deserialized instances.
58 58
 
59 59
 Inherited Models
60 60
 ~~~~~~~~~~~~~~~~
@@ -68,13 +68,13 @@ However, if you have a model that uses `multi-table inheritance`_, you also
68 68
 need to serialize all of the base classes for the model. This is because only
69 69
 the fields that are locally defined on the model will be serialized. For
70 70
 example, consider the following models::
71  
-	
  71
+
72 72
 	class Place(models.Model):
73 73
 		name = models.CharField(max_length=50)
74  
-		
  74
+
75 75
 	class Restaurant(Place):
76 76
 		serves_hot_dogs = models.BooleanField()
77  
-		
  77
+
78 78
 If you only serialize the Restaurant model::
79 79
 
80 80
 	data = serializers.serialize('xml', Restaurant.objects.all())
@@ -119,7 +119,8 @@ something like::
119 119
             deserialized_object.save()
120 120
 
121 121
 In other words, the usual use is to examine the deserialized objects to make
122  
-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.
  122
+sure that they are "appropriate" for saving before doing so.  Of course, if you
  123
+trust your data source you could just save the object and move on.
123 124
 
124 125
 The Django object itself can be inspected as ``deserialized_object.object``.
125 126
 

0 notes on commit 56d901e

Please sign in to comment.
Something went wrong with that request. Please try again.