Commit 604728a9 by Tom Christie

Merge pull request #2011 from fusionbox/announcement_typos

Fixed some typos in 3.0 release notes
parents 003c42b0 9ce130d1
...@@ -748,7 +748,7 @@ You can revert this behavior, and display filenames in the representation by usi ...@@ -748,7 +748,7 @@ You can revert this behavior, and display filenames in the representation by usi
You can also modify serializer fields individually, using the `use_url` argument: You can also modify serializer fields individually, using the `use_url` argument:
uploaded_file = serializers.FileField(user_url=False) uploaded_file = serializers.FileField(use_url=False)
Also note that you should pass the `request` object to the serializer as context when instantiating it, so that a fully qualified URL can be returned. Returned URLs will then be of the form `https://example.com/url_path/filename.txt`. For example: Also note that you should pass the `request` object to the serializer as context when instantiating it, so that a fully qualified URL can be returned. Returned URLs will then be of the form `https://example.com/url_path/filename.txt`. For example:
...@@ -790,7 +790,7 @@ You can modify this behavior globally by using the `COERCE_DECIMAL_TO_STRING` se ...@@ -790,7 +790,7 @@ You can modify this behavior globally by using the `COERCE_DECIMAL_TO_STRING` se
'COERCE_DECIMAL_TO_STRING': False 'COERCE_DECIMAL_TO_STRING': False
} }
Or modify it on an individual serializer field, using the `corece_to_string` keyword argument. Or modify it on an individual serializer field, using the `coerce_to_string` keyword argument.
# Return `Decimal` instances in `serializer.data`, not strings. # Return `Decimal` instances in `serializer.data`, not strings.
amount = serializers.DecimalField( amount = serializers.DecimalField(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment