aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial/1-serialization/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial/1-serialization/index.html')
-rw-r--r--tutorial/1-serialization/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/tutorial/1-serialization/index.html b/tutorial/1-serialization/index.html
index 6782a94c..b9aae2a0 100644
--- a/tutorial/1-serialization/index.html
+++ b/tutorial/1-serialization/index.html
@@ -487,7 +487,7 @@ from snippets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES
class SnippetSerializer(serializers.Serializer):
pk = serializers.IntegerField(read_only=True)
title = serializers.CharField(required=False, allow_blank=True, max_length=100)
- code = serializers.CharField(style={'type': 'textarea'})
+ code = serializers.CharField(style={'base_template': 'textarea.html'})
linenos = serializers.BooleanField(required=False)
language = serializers.ChoiceField(choices=LANGUAGE_CHOICES, default='python')
style = serializers.ChoiceField(choices=STYLE_CHOICES, default='friendly')