diff options
| author | Craig de Stigter | 2014-10-03 09:00:33 +1300 | 
|---|---|---|
| committer | Craig de Stigter | 2014-10-03 09:00:33 +1300 | 
| commit | 857a8486b1534f89bd482de86d39ff717b6618eb (patch) | |
| tree | a255416bf8adfef9e3ad9b4e04f01e083ecf0189 /docs/topics/3.0-announcement.md | |
| parent | dfab9af294972720f59890967cd9ae1a6c0796b6 (diff) | |
| download | django-rest-framework-857a8486b1534f89bd482de86d39ff717b6618eb.tar.bz2 | |
More spelling tweaks
Diffstat (limited to 'docs/topics/3.0-announcement.md')
| -rw-r--r-- | docs/topics/3.0-announcement.md | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/topics/3.0-announcement.md b/docs/topics/3.0-announcement.md index 5242be57..fcae79e1 100644 --- a/docs/topics/3.0-announcement.md +++ b/docs/topics/3.0-announcement.md @@ -411,7 +411,7 @@ The following class is an example of a generic serializer that can handle coerci                      # Ignore methods and other callables.                      pass                  elif isinstance(attribute, (str, int, bool, float, type(None))): -                    # primitive types can be passed through unmodified. +                    # Primitive types can be passed through unmodified.                      output[attribute_name] = attribute                  elif isinstance(attribute, list):                      # Recursivly deal with items in lists. @@ -446,7 +446,7 @@ We now use the following:  #### The `required`, `allow_none`, `allow_blank` and `default` arguments. -REST framework now has more explict and clear control over validating empty values for fields. +REST framework now has more explicit and clear control over validating empty values for fields.  Previously the meaning of the `required=False` keyword argument was underspecified. In practice its use meant that a field could either be not included in the input, or it could be included, but be `None`. @@ -522,7 +522,7 @@ However this code *would not be valid* in `2.4.3`:              # ...  The queryset argument is now always required for writable relational fields. -This removes some magic and makes it easier and more obvious to move between implict `ModelSerializer` classes and explicit `Serializer` classes. +This removes some magic and makes it easier and more obvious to move between implicit `ModelSerializer` classes and explicit `Serializer` classes.      class AccountSerializer(serializers.ModelSerializer):          organisations = serializers.SlugRelatedField(  | 
