0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Docs edits

This commit is contained in:
Karl Hobley 2017-04-06 15:27:34 +01:00
parent 141c1d6568
commit fd9db9335a

View File

@ -147,8 +147,8 @@ Custom serialisers
.. versionadded: 1.10
Serialisers_ are used to convert the database representation of a model into
something that can be sent over the wire in JSON format. You can override the
serialiser for any field using the ``serializer`` keyword argument:
JSON format. You can override the serialiser for any field using the
``serializer`` keyword argument:
.. code-block:: python
@ -182,8 +182,7 @@ to add API fields that have a different field name or no underlying field at all
...
]
This adds two fields to the API for the same underlying database field
(other fields omitted for brevity):
This adds two fields to the API (other fields omitted for brevity):
.. code-block:: json
@ -223,7 +222,7 @@ For example:
...
]
This would add the following to the reponse:
This would add the following to the JSON:
.. code-block:: json