From 34901a5ffa6078fd964d5b3acdb222410069230d Mon Sep 17 00:00:00 2001 From: James Beith Date: Sun, 24 Jan 2016 13:33:18 +0000 Subject: [PATCH] Fix syntax errors in docs example - Add missing comma in kwargs - Remove spaces around keyword / parameter equals - Replace incorrect curly brace with parenthesis --- docs/api-guide/fields.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index 4118f6df9..5acaf123e 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -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.