diff options
| author | Daniel Sokolowski | 2012-10-21 07:52:10 -0700 |
|---|---|---|
| committer | Daniel Sokolowski | 2012-10-21 07:52:10 -0700 |
| commit | d53ee8a10c5fd3c95a577a409d39a394a838b0b7 (patch) | |
| tree | d9228a3fe855ac0c4ab4cb7be579415e3b52627a /docs/api-guide/serializers.md | |
| parent | efabd2bb1b762fbdee2b48fa3a6ccb8f23c7e8dc (diff) | |
| parent | 65d4970bf71d31669f10dc0cecd4a2a00acd7393 (diff) | |
| download | django-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.md | 4 |
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. |
