aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/serializers.md
diff options
context:
space:
mode:
authorDaniel Sokolowski2012-10-21 07:52:10 -0700
committerDaniel Sokolowski2012-10-21 07:52:10 -0700
commitd53ee8a10c5fd3c95a577a409d39a394a838b0b7 (patch)
treed9228a3fe855ac0c4ab4cb7be579415e3b52627a /docs/api-guide/serializers.md
parentefabd2bb1b762fbdee2b48fa3a6ccb8f23c7e8dc (diff)
parent65d4970bf71d31669f10dc0cecd4a2a00acd7393 (diff)
downloaddjango-rest-framework-d53ee8a10c5fd3c95a577a409d39a394a838b0b7.tar.bz2
Merge pull request #308 from markotibold/docs-edits
Documentation spelling and other mistake fixes.
Diffstat (limited to 'docs/api-guide/serializers.md')
-rw-r--r--docs/api-guide/serializers.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md
index 47958fe3..c10a3f44 100644
--- a/docs/api-guide/serializers.md
+++ b/docs/api-guide/serializers.md
@@ -175,7 +175,7 @@ You can add extra fields to a `ModelSerializer` or override the default fields b
class Meta:
model = Account
-Extra fields can corrospond to any property or callable on the model.
+Extra fields can correspond to any property or callable on the model.
## Relational fields
@@ -187,7 +187,7 @@ The `PrimaryKeyRelatedField` and `HyperlinkedRelatedField` fields provide altern
The `ModelSerializer` class can itself be used as a field, in order to serialize relationships using nested representations.
-The `RelatedField` class may be subclassed to create a custom represenation of a relationship. The subclass should override `.to_native()`, and optionally `.from_native()` if deserialization is supported.
+The `RelatedField` class may be subclassed to create a custom representation of a relationship. The subclass should override `.to_native()`, and optionally `.from_native()` if deserialization is supported.
All the relational fields may be used for any relationship or reverse relationship on a model.