diff options
| author | Pavel Savchenko | 2012-10-31 00:37:30 +0200 | 
|---|---|---|
| committer | Pavel Savchenko | 2012-10-31 00:37:30 +0200 | 
| commit | a3ace366db4c664c88bf76b10b40b4c576c130dd (patch) | |
| tree | e09ee831ac534f2b410c4ea9615cc67a219f558c /docs/tutorial/1-serialization.md | |
| parent | 166025c0fcd0cfdcac1dbcbf31dbfc1d43f666b4 (diff) | |
| download | django-rest-framework-a3ace366db4c664c88bf76b10b40b4c576c130dd.tar.bz2 | |
using 'pk' in fields throws KeyError
add missing imports
Browsable API seems to be working fine with FBV's (2.0.0)
removing snippets from the URI doesn't make sense
remain consistent in using SnippetDetail
Diffstat (limited to 'docs/tutorial/1-serialization.md')
| -rw-r--r-- | docs/tutorial/1-serialization.md | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index 5cf16a67..316a3c25 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -201,7 +201,7 @@ Open the file `snippets/serializers.py` again, and edit the `SnippetSerializer`      class SnippetSerializer(serializers.ModelSerializer):          class Meta:              model = Snippet -            fields = ('pk', 'title', 'code', 'linenos', 'language', 'style') +            fields = ('id', 'title', 'code', 'linenos', 'language', 'style') | 
