Skip to content

Commit 0e4811e

Browse files
lawkaringithirpkilby
authored andcommitted
Fix minor grammatical errors in docs (#6979)
1 parent f9cc190 commit 0e4811e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api-guide/fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The `default` is not applied during partial update operations. In the partial up
5252

5353
May be set to a function or other callable, in which case the value will be evaluated each time it is used. When called, it will receive no arguments. If the callable has a `set_context` method, that will be called each time before getting the value with the field instance as only argument. This works the same way as for [validators](validators.md#using-set_context).
5454

55-
When serializing the instance, default will be used if the the object attribute or dictionary key is not present in the instance.
55+
When serializing the instance, default will be used if the object attribute or dictionary key is not present in the instance.
5656

5757
Note that setting a `default` value implies that the field is not required. Including both the `default` and `required` keyword arguments is invalid and will raise an error.
5858

docs/api-guide/serializers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ The signatures for these methods are as follows:
10141014

10151015
Takes the object instance that requires serialization, and should return a primitive representation. Typically this means returning a structure of built-in Python datatypes. The exact types that can be handled will depend on the render classes you have configured for your API.
10161016

1017-
May be overridden in order modify the representation style. For example:
1017+
May be overridden in order to modify the representation style. For example:
10181018

10191019
def to_representation(self, instance):
10201020
"""Convert `username` to lowercase."""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy