diff options
| author | Tom Christie | 2012-10-31 02:32:54 -0700 |
|---|---|---|
| committer | Tom Christie | 2012-10-31 02:32:54 -0700 |
| commit | a55dfaa4884b12691ae2e2d7ced5b64fd5630740 (patch) | |
| tree | e09ee831ac534f2b410c4ea9615cc67a219f558c /docs/tutorial/1-serialization.md | |
| parent | 166025c0fcd0cfdcac1dbcbf31dbfc1d43f666b4 (diff) | |
| parent | a3ace366db4c664c88bf76b10b40b4c576c130dd (diff) | |
| download | django-rest-framework-a55dfaa4884b12691ae2e2d7ced5b64fd5630740.tar.bz2 | |
Merge pull request #343 from asfaltboy/fix-docs
Fixing tutorials
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') |
