mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
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
This commit is contained in:
parent
d4b8da2745
commit
56d901edcc
@ -51,10 +51,10 @@ be serialized.
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
Depending on your model, you may find that it is not possible to deserialize
|
Depending on your model, you may find that it is not possible to
|
||||||
a model that only serializes a subset of its fields. If a serialized object
|
deserialize a model that only serializes a subset of its fields. If a
|
||||||
doesn't specify all the fields that are required by a model, the deserializer
|
serialized object doesn't specify all the fields that are required by a
|
||||||
will not be able to save deserialized instances.
|
model, the deserializer will not be able to save deserialized instances.
|
||||||
|
|
||||||
Inherited Models
|
Inherited Models
|
||||||
~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~
|
||||||
@ -119,7 +119,8 @@ something like::
|
|||||||
deserialized_object.save()
|
deserialized_object.save()
|
||||||
|
|
||||||
In other words, the usual use is to examine the deserialized objects to make
|
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.
|
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.
|
||||||
|
|
||||||
The Django object itself can be inspected as ``deserialized_object.object``.
|
The Django object itself can be inspected as ``deserialized_object.object``.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user