mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-03-03 19:00:17 +03:00
Fix syntax errors in docs example
- Add missing comma in kwargs - Remove spaces around keyword / parameter equals - Replace incorrect curly brace with parenthesis
This commit is contained in:
parent
f2d6013134
commit
34901a5ffa
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user