Skip to content

Commit 8861a7d

Browse files
committed
Merge branch 'version-3.0' of https://github.com/tomchristie/django-rest-framework into version-3.0
2 parents 2b53595 + 604728a commit 8861a7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/topics/3.0-announcement.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ You can revert this behavior, and display filenames in the representation by usi
748748

749749
You can also modify serializer fields individually, using the `use_url` argument:
750750

751-
uploaded_file = serializers.FileField(user_url=False)
751+
uploaded_file = serializers.FileField(use_url=False)
752752

753753
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:
754754

@@ -790,7 +790,7 @@ You can modify this behavior globally by using the `COERCE_DECIMAL_TO_STRING` se
790790
'COERCE_DECIMAL_TO_STRING': False
791791
}
792792

793-
Or modify it on an individual serializer field, using the `corece_to_string` keyword argument.
793+
Or modify it on an individual serializer field, using the `coerce_to_string` keyword argument.
794794

795795
# Return `Decimal` instances in `serializer.data`, not strings.
796796
amount = serializers.DecimalField(

0 commit comments

Comments
 (0)