Ticket #18214: serialization-clarification.diff

File serialization-clarification.diff, 1.2 KB (added by Alex Ogier, 13 years ago)
  • docs/topics/serialization.txt

    diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt
    index d5a5282..6bda32d 100644
    a b Serializing Django objects  
    33==========================
    44
    55Django's serialization framework provides a mechanism for "translating" Django
    6 objects into other formats. Usually these other formats will be text-based and
    7 used for sending Django objects over a wire, but it's possible for a
     6models into other formats. Usually these other formats will be text-based and
     7used for sending Django data over a wire, but it's possible for a
    88serializer to handle any format (text-based or not).
    99
    1010.. seealso::
    At the highest level, serializing data is a very simple operation::  
    2323The arguments to the ``serialize`` function are the format to serialize the data
    2424to (see `Serialization formats`_) and a
    2525:class:`~django.db.models.query.QuerySet` to serialize. (Actually, the second
    26 argument can be any iterator that yields Django objects, but it'll almost
    27 always be a QuerySet).
     26argument can be any iterator that yields Django model instances, but it'll
     27almost always be a QuerySet).
    2828
    2929You can also use a serializer object directly::
    3030
Back to Top