diff options
| author | Tom Christie | 2012-10-30 07:06:53 -0700 |
|---|---|---|
| committer | Tom Christie | 2012-10-30 07:06:53 -0700 |
| commit | a13aaea78debc63fce9c134a9a1ee2a0e3d3236c (patch) | |
| tree | 2cf737bc19e4d0255c0e5a6b8f368ace695158eb /docs/tutorial/1-serialization.md | |
| parent | 4cdd0b845e10c433358f210c84a2b3fe28543c68 (diff) | |
| parent | 3216ac022419710485695a9a21f083f08e012a7f (diff) | |
| download | django-rest-framework-a13aaea78debc63fce9c134a9a1ee2a0e3d3236c.tar.bz2 | |
Merge pull request #341 from minddust/restframework2
fix ModelSerializer useage
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 77a7641f..5cf16a67 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -200,7 +200,7 @@ Open the file `snippets/serializers.py` again, and edit the `SnippetSerializer` class SnippetSerializer(serializers.ModelSerializer): class Meta: - model = models.Snippet + model = Snippet fields = ('pk', 'title', 'code', 'linenos', 'language', 'style') |
