From 182313cbee83d36765e8f5cbc24bef535c4ef190 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 9 Dec 2014 19:53:42 +0000 Subject: Update documentation --- api-guide/fields/index.html | 4 ++++ tutorial/5-relationships-and-hyperlinked-apis/index.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/api-guide/fields/index.html b/api-guide/fields/index.html index 46fa5f68..2610e178 100644 --- a/api-guide/fields/index.html +++ b/api-guide/fields/index.html @@ -753,13 +753,17 @@ color_channel = serializers.ChoiceField(

Signature: ChoiceField(choices)

+

Both the allow_blank and allow_null are valid options on ChoiceField, although it is highly recommended that you only use one and not both. allow_blank should be preferred for textual choices, and allow_null should be preferred for numeric or other non-textual choices.

MultipleChoiceField

A field that can accept a set of zero, one or many values, chosen from a limited set of choices. Takes a single mandatory argument. to_internal_representation returns a set containing the selected values.

Signature: MultipleChoiceField(choices)

+

As with ChoiceField, both the allow_blank and allow_null options are valid, although it is highly recommended that you only use one and not both. allow_blank should be preferred for textual choices, and allow_null should be preferred for numeric or other non-textual choices.


File upload fields

Parsers and file uploads.

diff --git a/tutorial/5-relationships-and-hyperlinked-apis/index.html b/tutorial/5-relationships-and-hyperlinked-apis/index.html index 364de40d..4c126bbb 100644 --- a/tutorial/5-relationships-and-hyperlinked-apis/index.html +++ b/tutorial/5-relationships-and-hyperlinked-apis/index.html @@ -457,7 +457,7 @@ We'll add a url pattern for our new API root in snippets/urls.py: