mirror of
https://github.com/django/django.git
synced 2025-01-03 06:55:47 +00:00
Fixed #18214 -- Clarified the docs about serializable objects.
This commit is contained in:
parent
b86a00187d
commit
227cec686e
1
AUTHORS
1
AUTHORS
@ -395,6 +395,7 @@ answer newbie questions, and generally made Django that much better:
|
|||||||
Afonso Fernández Nogueira <fonzzo.django@gmail.com>
|
Afonso Fernández Nogueira <fonzzo.django@gmail.com>
|
||||||
Neal Norwitz <nnorwitz@google.com>
|
Neal Norwitz <nnorwitz@google.com>
|
||||||
Todd O'Bryan <toddobryan@mac.com>
|
Todd O'Bryan <toddobryan@mac.com>
|
||||||
|
Alex Ogier <alex.ogier@gmail.com>
|
||||||
Selwin Ong <selwin@ui.co.id>
|
Selwin Ong <selwin@ui.co.id>
|
||||||
Gerardo Orozco <gerardo.orozco.mosqueda@gmail.com>
|
Gerardo Orozco <gerardo.orozco.mosqueda@gmail.com>
|
||||||
Christian Oudard <christian.oudard@gmail.com>
|
Christian Oudard <christian.oudard@gmail.com>
|
||||||
|
@ -3,8 +3,8 @@ Serializing Django objects
|
|||||||
==========================
|
==========================
|
||||||
|
|
||||||
Django's serialization framework provides a mechanism for "translating" Django
|
Django's serialization framework provides a mechanism for "translating" Django
|
||||||
objects into other formats. Usually these other formats will be text-based and
|
models into other formats. Usually these other formats will be text-based and
|
||||||
used for sending Django objects over a wire, but it's possible for a
|
used for sending Django data over a wire, but it's possible for a
|
||||||
serializer to handle any format (text-based or not).
|
serializer to handle any format (text-based or not).
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
@ -23,8 +23,8 @@ At the highest level, serializing data is a very simple operation::
|
|||||||
The arguments to the ``serialize`` function are the format to serialize the data
|
The arguments to the ``serialize`` function are the format to serialize the data
|
||||||
to (see `Serialization formats`_) and a
|
to (see `Serialization formats`_) and a
|
||||||
:class:`~django.db.models.query.QuerySet` to serialize. (Actually, the second
|
:class:`~django.db.models.query.QuerySet` to serialize. (Actually, the second
|
||||||
argument can be any iterator that yields Django objects, but it'll almost
|
argument can be any iterator that yields Django model instances, but it'll
|
||||||
always be a QuerySet).
|
almost always be a QuerySet).
|
||||||
|
|
||||||
You can also use a serializer object directly::
|
You can also use a serializer object directly::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user