diff options
| author | Stephan Groß | 2012-10-30 13:50:07 +0100 |
|---|---|---|
| committer | Stephan Groß | 2012-10-30 13:50:07 +0100 |
| commit | 9aa37260098b5ec2750090fb035945780b35ad1d (patch) | |
| tree | eec6cb8ce87f197ff90f89e9e81bec29c8617ed0 /docs/tutorial/1-serialization.md | |
| parent | 586584201967d9810f649def51cef577c65d50fb (diff) | |
| download | django-rest-framework-9aa37260098b5ec2750090fb035945780b35ad1d.tar.bz2 | |
fix ModelSerializer useage
cause of:
from snippets.models import Snippet
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 7330fdef..0b84a779 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -194,7 +194,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') |
