diff options
| author | Marko Tibold | 2012-10-21 16:34:07 +0200 | 
|---|---|---|
| committer | Marko Tibold | 2012-10-21 16:34:07 +0200 | 
| commit | 71a93930fd4df7a1f5f92c67633b813a26a5e938 (patch) | |
| tree | c82b5fdc3d69bc54aee06e506df7998e24db13e9 /docs/api-guide/fields.md | |
| parent | efabd2bb1b762fbdee2b48fa3a6ccb8f23c7e8dc (diff) | |
| download | django-rest-framework-71a93930fd4df7a1f5f92c67633b813a26a5e938.tar.bz2 | |
Fixing spelling errors.
Diffstat (limited to 'docs/api-guide/fields.md')
| -rw-r--r-- | docs/api-guide/fields.md | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index dc9ab045..b3cf186c 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -42,7 +42,7 @@ A serializer definition that looked like this:          class Meta:              fields = ('url', 'owner', 'name', 'expired') -Would produced output similar to: +Would produce output similar to:      {          'url': 'http://example.com/api/accounts/3/', @@ -51,7 +51,7 @@ Would produced output similar to:          'expired': True      } -Be default, the `Field` class will perform a basic translation of the source value into primative datatypes, falling back to unicode representations of complex datatypes when neccesary. +By default, the `Field` class will perform a basic translation of the source value into primative datatypes, falling back to unicode representations of complex datatypes when necessary.  You can customize this  behaviour by overriding the `.to_native(self, value)` method. @@ -84,7 +84,7 @@ or `django.db.models.fields.TextField`.  ## EmailField -A text representation, validates the text to be a valid e-mail adress. Corresponds to `django.db.models.fields.EmailField` +A text representation, validates the text to be a valid e-mail address. Corresponds to `django.db.models.fields.EmailField`  ## DateField @@ -165,7 +165,7 @@ And a model serializer defined like this:              model = Bookmark              exclude = ('id',) -The an example output format for a Bookmark instance would be: +Then an example output format for a Bookmark instance would be:      {          'tags': [u'django', u'python'],  | 
