Commit 72372efd by Xavier Ordoquy

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

Fix syntax errors in docs example
parents f2d60131 34901a5f
......@@ -96,9 +96,9 @@ Two examples here are `'input_type'` and `'base_template'`:
# Use a radio input instead of a select input.
color_channel = serializers.ChoiceField(
choices=['red', 'green', 'blue']
style = {'base_template': 'radio.html'}
}
choices=['red', 'green', 'blue'],
style={'base_template': 'radio.html'}
)
For more details see the [HTML & Forms][html-and-forms] documentation.
......
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