From fd9db9335ab19f563766918460c03593fbd29259 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Thu, 6 Apr 2017 15:27:34 +0100 Subject: [PATCH] Docs edits --- docs/advanced_topics/api/v2/configuration.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/advanced_topics/api/v2/configuration.rst b/docs/advanced_topics/api/v2/configuration.rst index 0e669aef3e..6e755c828d 100644 --- a/docs/advanced_topics/api/v2/configuration.rst +++ b/docs/advanced_topics/api/v2/configuration.rst @@ -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