Merge pull request #3867 from jamesbeith/docs-example-fixes

Fix syntax errors in docs example
This commit is contained in:
Xavier Ordoquy 2016-01-24 18:16:02 +01:00
commit 72372efdb6

View File

@ -96,9 +96,9 @@ Two examples here are `'input_type'` and `'base_template'`:
# Use a radio input instead of a select input. # Use a radio input instead of a select input.
color_channel = serializers.ChoiceField( color_channel = serializers.ChoiceField(
choices=['red', 'green', 'blue'] choices=['red', 'green', 'blue'],
style={'base_template': 'radio.html'} style={'base_template': 'radio.html'}
} )
For more details see the [HTML & Forms][html-and-forms] documentation. For more details see the [HTML & Forms][html-and-forms] documentation.