diff options
| author | Xavier Ordoquy | 2015-02-10 23:56:05 +0100 | 
|---|---|---|
| committer | Xavier Ordoquy | 2015-02-10 23:56:05 +0100 | 
| commit | ccb2b8ff691760e4e93f3905975b285cee8b67f8 (patch) | |
| tree | f841204e1818f09c91e062e4bdedefe2732c65c1 /tutorial/1-serialization/index.html | |
| parent | b0a1712ebd2eeb9dfe17d0e2f7e1abd7000cfa15 (diff) | |
| download | django-rest-framework-ccb2b8ff691760e4e93f3905975b285cee8b67f8.tar.bz2 | |
Update documentation
Diffstat (limited to 'tutorial/1-serialization/index.html')
| -rw-r--r-- | tutorial/1-serialization/index.html | 2 | 
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') | 
